From d3d6a43cd0bd309878e3d1248d31265e5ada557a Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 31 Jul 2024 19:01:37 +0000 Subject: [PATCH] remove blob equals to 0 case --- disperser/cmd/apiserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disperser/cmd/apiserver/main.go b/disperser/cmd/apiserver/main.go index 793e40a8a7..2698ccca07 100644 --- a/disperser/cmd/apiserver/main.go +++ b/disperser/cmd/apiserver/main.go @@ -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) }