Re-order shutdownLock fields in cluster declaration

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Hector Sanjuan 2018-10-30 11:54:32 +01:00
parent ca3fe646b1
commit 1bc7f5a643

View File

@ -56,15 +56,18 @@ type Cluster struct {
allocator PinAllocator
informer Informer
shutdownLock sync.Mutex
shutdownB bool
removed bool
doneCh chan struct{}
readyCh chan struct{}
readyB bool
wg sync.WaitGroup
// peerAdd
paMux sync.Mutex
// shutdown function and related variables
shutdownLock sync.Mutex
shutdownB bool
removed bool
}
// NewCluster builds a new IPFS Cluster peer. It initializes a LibP2P host,