mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 14:22:13 +00:00
Merge pull request #445 from aarshkshah1992/feat/cluster-level-mismatch
Adjust cluster level while encoding as well
This commit is contained in:
commit
3ea48dc7c2
@ -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