MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / batchingEnabled

Method batchingEnabled

plugins/destination/s3/client/spec/spec.go:292–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290}
291
292func (s *Spec) batchingEnabled() bool {
293 if s.NoRotate {
294 // if that's set we don't allow batching
295 return false
296 }
297
298 return (s.BatchSize == nil || *s.BatchSize > 0) ||
299 (s.BatchSizeBytes == nil || *s.BatchSizeBytes > 0) ||
300 (s.BatchTimeout == nil || s.BatchTimeout.Duration() > 0)
301}
302
303func ptr[A any](a A) *A {
304 return &a

Callers 1

ValidateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected