make connection heartbeating independent of periodic gossip
This was a convenient but rather suspect coupling. In particular, it will break if the period gossip logic changes s.t. it no longer sends gossip on all connections every interval.
This commit is contained in:
1 parent
cec1efbcef
commit
40d127d9a4
3 files changed
+10
-3
No files matched your search
+2
-1
@@ -8,7 +8,8 @@ const (
|
||||
type ProtocolTag byte
|
||||
|
||||
const (
|
||||
ProtocolConnectionEstablished ProtocolTag = iota
|
||||
ProtocolHeartbeat ProtocolTag = iota
|
||||
ProtocolConnectionEstablished
|
||||
ProtocolFragmentationReceived
|
||||
ProtocolStartFragmentationTest
|
||||
ProtocolNonce
|
||||
|
||||
Reference in new issue
Block a user