Skip to content

Commit

Permalink
fix: batch byte size limit default config error
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmtszr committed Dec 26, 2023
1 parent 383dec3 commit e1fc3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *Config) ApplyDefaults() {
c.Elasticsearch.BatchSizeLimit = 1000
}

if c.Elasticsearch.BatchByteSizeLimit == 0 {
if c.Elasticsearch.BatchByteSizeLimit == nil {
c.Elasticsearch.BatchByteSizeLimit = helpers.ResolveUnionIntOrStringValue("10mb")
}

Expand Down

0 comments on commit e1fc3da

Please sign in to comment.