refactor: make protocol message tags a separate type

This commit is contained in:
Matthias Radestock committed 2015-01-20 21:51:18 +00:00
1 parent a1ef2def2b
commit 644697977b
2 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -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