Skip to content

Commit cd1c0b5

Browse files
committed
Remove redundant printouts
Signed-off-by: Artem Barger <artem@bargr.net>
1 parent e4bbd9a commit cd1c0b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/types/config.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package types
77

88
import (
9-
"fmt"
109
"time"
1110

1211
"github.com/pkg/errors"
@@ -178,8 +177,7 @@ func (c Configuration) Validate() error {
178177
}
179178

180179
if !(c.RequestMaxBytes > 0) {
181-
panic(fmt.Sprintf("%v", c))
182-
// return errors.Errorf("RequestMaxBytes should be greater than zero")
180+
return errors.Errorf("RequestMaxBytes should be greater than zero")
183181
}
184182

185183
if !(c.RequestPoolSubmitTimeout > 0) {

0 commit comments

Comments
 (0)