refactor: get rid of router/utils.go

most functions end up in other files in the router package, but a few
land in common.
This commit is contained in:
Matthias Radestock committed 2015-11-07 15:45:29 +00:00
1 parent 7a5c910cd5
commit 8bd77c0d47
11 files changed
+114 -125

No files matched your search

+1 -1
View File
@@ -414,7 +414,7 @@ func (conn *LocalConnection) sendSimpleProtocolMsg(tag ProtocolTag) error {
}
func (conn *LocalConnection) sendProtocolMsg(m ProtocolMsg) error {
return conn.tcpSender.Send(Concat([]byte{byte(m.tag)}, m.msg))
return conn.tcpSender.Send(append([]byte{byte(m.tag)}, m.msg...))
}
func (conn *LocalConnection) receiveTCP(receiver TCPReceiver) {