Browse Source

libnetwork: Controller.addServiceBinding: fix duplicate word in comment

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 year ago
parent
commit
be90e5e1d4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libnetwork/service_common.go

+ 2 - 2
libnetwork/service_common.go

@@ -228,8 +228,8 @@ func (c *Controller) addServiceBinding(svcName, svcID, nID, eID, containerName s
 	var addService bool
 	var addService bool
 
 
 	// Failure to lock the network ID on add can result in racing
 	// Failure to lock the network ID on add can result in racing
-	// racing against network deletion resulting in inconsistent
-	// state in the c.serviceBindings map and it's sub-maps. Also,
+	// against network deletion resulting in inconsistent state
+	// in the c.serviceBindings map and it's sub-maps. Also,
 	// always lock network ID before services to avoid deadlock.
 	// always lock network ID before services to avoid deadlock.
 	c.networkLocker.Lock(nID)
 	c.networkLocker.Lock(nID)
 	defer c.networkLocker.Unlock(nID) //nolint:errcheck
 	defer c.networkLocker.Unlock(nID) //nolint:errcheck