From 2483c75f0961bfda040d69bf01930d9894dcb6cd Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 17 May 2016 16:04:33 +1000 Subject: [PATCH] Improve dht.Transaction.SetResponseHandler comment --- dht/transaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.48.1