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()