cosmetic - move comment to correct place
This commit is contained in:
1 parent
9bd695a816
commit
2b5e2db550
1 file changed
+1
-1
+1
-1
@@ -266,8 +266,8 @@ func (peer *Peer) encode(enc *gob.Encoder) {
|
|||||||
for _, conn := range peer.connections {
|
for _, conn := range peer.connections {
|
||||||
checkFatal(connsEnc.Encode(conn.Remote().NameByte))
|
checkFatal(connsEnc.Encode(conn.Remote().NameByte))
|
||||||
checkFatal(connsEnc.Encode(conn.RemoteTCPAddr()))
|
checkFatal(connsEnc.Encode(conn.RemoteTCPAddr()))
|
||||||
// DANGER holding rlock on peer, going to take rlock on conn
|
|
||||||
checkFatal(connsEnc.Encode(conn.Outbound()))
|
checkFatal(connsEnc.Encode(conn.Outbound()))
|
||||||
|
// DANGER holding rlock on peer, going to take rlock on conn
|
||||||
checkFatal(connsEnc.Encode(conn.Established()))
|
checkFatal(connsEnc.Encode(conn.Established()))
|
||||||
}
|
}
|
||||||
checkFatal(enc.Encode(connsBuf.Bytes()))
|
checkFatal(enc.Encode(connsBuf.Bytes()))
|
||||||
|
|||||||
Reference in new issue
Block a user