Skip to content

Commit

Permalink
remove blob equals to 0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 31, 2024
1 parent bd7a762 commit d3d6a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/cmd/apiserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func RunDisperserServer(ctx *cli.Context) error {
ratelimiter = ratelimit.NewRateLimiter(reg, globalParams, bucketStore, logger)
}

if config.MaxBlobSize < 0 || config.MaxBlobSize > 64*1024*1024 {
if config.MaxBlobSize <= 0 || config.MaxBlobSize > 64*1024*1024 {
return fmt.Errorf("configured max blob size is invalid %v", config.MaxBlobSize)
}

Expand Down

0 comments on commit d3d6a43

Please sign in to comment.