mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 22:32:13 +00:00
adjust cluster level while encoding as well
This commit is contained in:
parent
f919cde5d4
commit
9a344cb274
@ -135,7 +135,7 @@ func (m *Message) GetClusterLevel() int {
|
||||
// default "no value" protobuf behavior (0)
|
||||
func (m *Message) SetClusterLevel(level int) {
|
||||
lvl := int32(level)
|
||||
m.ClusterLevelRaw = lvl
|
||||
m.ClusterLevelRaw = lvl + 1
|
||||
}
|
||||
|
||||
// Loggable turns a Message into machine-readable log output
|
||||
|
Loading…
x
Reference in New Issue
Block a user