Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: c1861bc8fa03d0b1a93de177887e99faa74619a6
https://github.com/btcsuite/btcd/commit/c1861bc8fa03d0b1a93de177887e99faa74619a6
Author: David Hill <[email protected]>
Date: 2016-04-06 (Wed, 06 Apr 2016)
Changed paths:
M peer/peer.go
M server.go
Log Message:
-----------
peer: declare QueueMessage()'s doneChan as send only.
This ensures the channel passed to QueueMessage is writable and that
QueueMessage will not read from the channel (write-only).
This change is merely a safety change. If a user of the API passes
a read-only channel to QueueMessage, it will now be caught at compile
time instead of panicking during runtime.
Also update internal functions.