Skip to content

Commit

Permalink
no validations for time.Duration
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Dec 3, 2024
1 parent 415d5f0 commit 3ffb9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion destination_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type DestinationWithBatch struct {
// Maximum size of batch before it gets written to the destination.
BatchSize int `json:"sdk.batch.size" default:"0" validate:"gt=-1"`
// Maximum delay before an incomplete batch is written to the destination.
BatchDelay time.Duration `json:"sdk.batch.delay" default:"0" validate:"gt=-1"`
BatchDelay time.Duration `json:"sdk.batch.delay" default:"0"`
}

// Wrap a Destination into the middleware.
Expand Down

0 comments on commit 3ffb9a2

Please sign in to comment.