refactor: make protocol message tags a separate type
This commit is contained in:
1 parent
a1ef2def2b
commit
644697977b
2 files changed
+11
-9
No files matched your search
@@ -530,7 +530,7 @@ func (conn *LocalConnection) receiveTCP(decoder *gob.Decoder) {
|
||||
continue
|
||||
}
|
||||
payload := msg[1:]
|
||||
switch msg[0] {
|
||||
switch ProtocolMsg(msg[0]) {
|
||||
case ProtocolConnectionEstablished:
|
||||
// We sent fast heartbeats to the remote peer, which has
|
||||
// now received at least one of them and told us via this
|
||||
|
||||
Reference in new issue
Block a user