]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Improve dht.Transaction.SetResponseHandler comment
authorMatt Joiner <anacrolix@gmail.com>
Tue, 17 May 2016 06:04:33 +0000 (16:04 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 17 May 2016 06:04:33 +0000 (16:04 +1000)
dht/transaction.go

index f7503d071c751403f4a369dc3ce000dcbe8f6278..0c007f00ca5d23382f9f1cb336ca6204bdec4729 100644 (file)
@@ -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()