Re-order shutdownLock fields in cluster declaration
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
ca3fe646b1
commit
1bc7f5a643
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user