Skip to content

Commit c0dd9bd

Browse files
committed
Send out warning before crossing limit
1 parent 678bbf4 commit c0dd9bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,8 @@ func (m *Memberlist) decryptRemoteState(bufConn io.Reader, streamLabel string) (
10941094
}
10951095

10961096
//Start reporting the size before you cross the limit
1097-
if moreBytes > uint32(math.Floor(.06*maxPushStateBytes)) {
1098-
m.logger.Printf("[INFO] memberlist: Remote node state size is %d limit is (%d)", moreBytes, maxPushStateBytes)
1097+
if moreBytes > uint32(math.Floor(.6*maxPushStateBytes)) {
1098+
m.logger.Printf("[WARN] memberlist: Remote node state size is (%d) limit is (%d)", moreBytes, maxPushStateBytes)
10991099
}
11001100

11011101
// Read in the rest of the payload

0 commit comments

Comments
 (0)