mirror of
https://github.com/minio/minio.git
synced 2025-02-02 17:35:58 -05:00
parent
9032f49f25
commit
3369eeb920
@ -75,8 +75,6 @@ const (
|
|||||||
EnvKafkaClientTLSKey = "MINIO_NOTIFY_KAFKA_CLIENT_TLS_KEY"
|
EnvKafkaClientTLSKey = "MINIO_NOTIFY_KAFKA_CLIENT_TLS_KEY"
|
||||||
EnvKafkaVersion = "MINIO_NOTIFY_KAFKA_VERSION"
|
EnvKafkaVersion = "MINIO_NOTIFY_KAFKA_VERSION"
|
||||||
EnvKafkaBatchSize = "MINIO_NOTIFY_KAFKA_BATCH_SIZE"
|
EnvKafkaBatchSize = "MINIO_NOTIFY_KAFKA_BATCH_SIZE"
|
||||||
|
|
||||||
maxBatchLimit = 100
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// KafkaArgs - Kafka target arguments.
|
// KafkaArgs - Kafka target arguments.
|
||||||
@ -131,9 +129,6 @@ func (k KafkaArgs) Validate() error {
|
|||||||
if k.QueueDir == "" {
|
if k.QueueDir == "" {
|
||||||
return errors.New("batch should be enabled only if queue dir is enabled")
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user