From: Matt Joiner Date: Tue, 17 May 2016 06:04:33 +0000 (+1000) Subject: Improve dht.Transaction.SetResponseHandler comment X-Git-Tag: v1.0.0~717 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2483c75f0961bfda040d69bf01930d9894dcb6cd;p=btrtrc.git Improve dht.Transaction.SetResponseHandler comment --- diff --git a/dht/transaction.go b/dht/transaction.go index f7503d07..0c007f00 100644 --- a/dht/transaction.go +++ b/dht/transaction.go @@ -22,8 +22,8 @@ type Transaction struct { userOnResponse func(Msg, bool) } -// SetResponseHandler sets up a function to be called when query response -// arrives. +// SetResponseHandler sets up a function to be called when the query response +// is available. func (t *Transaction) SetResponseHandler(f func(Msg, bool)) { t.mu.Lock() defer t.mu.Unlock()