TODO: review this
This commit is contained in:
parent
ce7e793cf0
commit
7375c831fd
1 changed files with 3 additions and 0 deletions
|
@ -422,6 +422,9 @@ func (n *Node) SendAsync(ctx context.Context, contact Contact, req Request, opti
|
||||||
case res := <-tx.res:
|
case res := <-tx.res:
|
||||||
ch <- &res
|
ch <- &res
|
||||||
return
|
return
|
||||||
|
//TODO: does this belong here?
|
||||||
|
//case <-n.stop.Ch():
|
||||||
|
// return
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case <-time.After(udpTimeout):
|
case <-time.After(udpTimeout):
|
||||||
|
|
Loading…
Reference in a new issue