Skip to content

Commit d80eb1e

Browse files
authored
add verification check (hyperledger-labs#618)
Signed-off-by: May.Buzaglo <May.Buzaglo@ibm.com> Co-authored-by: May.Buzaglo <May.Buzaglo@ibm.com>
1 parent 6134010 commit d80eb1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/types/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ func (c Configuration) Validate() error {
161161
if c.RequestBatchMaxCount > c.RequestBatchMaxBytes {
162162
return errors.New("RequestBatchMaxCount is bigger than RequestBatchMaxBytes")
163163
}
164+
if c.RequestMaxBytes > c.RequestBatchMaxBytes {
165+
return errors.New("RequestMaxBytes is bigger than RequestBatchMaxBytes")
166+
}
164167
if c.RequestForwardTimeout > c.RequestComplainTimeout {
165168
return errors.New("RequestForwardTimeout is bigger than RequestComplainTimeout")
166169
}

0 commit comments

Comments
 (0)