mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
parent
9032f49f25
commit
3369eeb920
@ -75,8 +75,6 @@ const (
|
||||
EnvKafkaClientTLSKey = "MINIO_NOTIFY_KAFKA_CLIENT_TLS_KEY"
|
||||
EnvKafkaVersion = "MINIO_NOTIFY_KAFKA_VERSION"
|
||||
EnvKafkaBatchSize = "MINIO_NOTIFY_KAFKA_BATCH_SIZE"
|
||||
|
||||
maxBatchLimit = 100
|
||||
)
|
||||
|
||||
// KafkaArgs - Kafka target arguments.
|
||||
@ -131,9 +129,6 @@ func (k KafkaArgs) Validate() error {
|
||||
if k.QueueDir == "" {
|
||||
return errors.New("batch should be enabled only if queue dir is enabled")
|
||||
}
|
||||
if k.BatchSize > maxBatchLimit {
|
||||
return fmt.Errorf("batch limit should not exceed %d", maxBatchLimit)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user