Express bit flag constants using iota bitshift.

This commit is contained in:
Sam Boyer 2014-02-18 17:20:41 -05:00
parent bbcf304b99
commit 5adbd39946

View File

@ -56,9 +56,9 @@ func (d DiscReason) String() string {
type Caps byte
const (
CapPeerDiscTy = 0x01
CapTxTy = 0x02
CapChainTy = 0x04
CapPeerDiscTy = 1 << iota
CapTxTy
CapChainTy
CapDefault = CapChainTy | CapTxTy | CapPeerDiscTy
)