Merge pull request #4887 from calvinrzachman/bit-align

ensure 64bit alignment of atomically accessed field in ChannelAcceptor
This commit is contained in:
Olaoluwa Osuntokun 2020-12-28 12:40:04 -08:00 committed by GitHub
commit 0cebce8a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,12 +7,12 @@ import (
// ChainedAcceptor represents a conjunction of ChannelAcceptor results.
type ChainedAcceptor struct {
acceptorID uint64 // To be used atomically.
// acceptors is a map of ChannelAcceptors that will be evaluated when
// the ChainedAcceptor's Accept method is called.
acceptors map[uint64]ChannelAcceptor
acceptorsMtx sync.RWMutex
acceptorID uint64 // To be used atomically.
}
// NewChainedAcceptor initializes a ChainedAcceptor.