cosmetic: remove outdated comment
The deadlock described for SendProtocolMsg (if it was going via the actor) cannot occur since all sending of broadcasts and gossip by LocalPeer is mediated by GossipSenders, the interaction with which is non-blocking.
This commit is contained in:
1 parent
cab2e11ca9
commit
d01c26e618
1 file changed
-5
@@ -116,11 +116,6 @@ func (conn *LocalConnection) Established() bool {
|
||||
return conn.established
|
||||
}
|
||||
|
||||
// Send directly, not via the Actor. If it goes via the Actor we can
|
||||
// get a deadlock where LocalConnection is blocked talking to
|
||||
// LocalPeer and LocalPeer is blocked trying send a ProtocolMsg via
|
||||
// LocalConnection, and the channels are full in both directions so
|
||||
// nothing can proceed.
|
||||
func (conn *LocalConnection) SendProtocolMsg(m ProtocolMsg) {
|
||||
if err := conn.sendProtocolMsg(m); err != nil {
|
||||
conn.Shutdown(err)
|
||||
|
||||
Reference in new issue
Block a user