Browse Source

Merge pull request #46547 from thaJeztah/libnetwork_store_nolock

libnetwork: Controller: remove mutex for "store"
Sebastiaan van Stijn 1 year ago
parent
commit
f3143745b2
1 changed files with 0 additions and 6 deletions
  1. 0 6
      libnetwork/store.go

+ 0 - 6
libnetwork/store.go

@@ -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
 }