Merge pull request #46547 from thaJeztah/libnetwork_store_nolock
libnetwork: Controller: remove mutex for "store"
This commit is contained in:
commit
f3143745b2
1 changed files with 0 additions and 6 deletions
|
@ -11,9 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func (c *Controller) initStores() error {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
||||
if c.cfg == nil {
|
||||
return nil
|
||||
}
|
||||
|
@ -34,9 +31,6 @@ func (c *Controller) closeStores() {
|
|||
}
|
||||
|
||||
func (c *Controller) getStore() *datastore.Store {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
||||
return c.store
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue