5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-23 00:51:35 +00:00

warning about possible deadlock in legacy channel send, need to migrate the link code to fix it

This commit is contained in:
Arceliar 2019-08-24 13:25:38 -05:00
parent 034fece33f
commit 0539dee900

View File

@ -278,6 +278,8 @@ func (p *peer) _sendLinkPacket(packet []byte) {
Payload: bs, Payload: bs,
} }
packet = linkPacket.encode() packet = linkPacket.encode()
// TODO replace this with a message send if/when the link becomes an actor
// FIXME not 100% sure the channel send version is deadlock-free...
p.linkOut <- packet p.linkOut <- packet
} }