Skip to content

Commit

Permalink
Mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
mhindery committed May 22, 2020
1 parent 597d5da commit b79b973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kubefwd/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Try:
ClientSet: clientSet,
Context: ctx,
Namespace: namespace,
NamespaceIPLock: sync.Mutex{}, // For parallelization of ip handout, each namespace has its own a.b.c.* range
NamespaceIPLock: &sync.Mutex{}, // For parallelization of ip handout, each namespace has its own a.b.c.* range
ListOptions: listOptions,
Hostfile: &fwdport.HostFileWithLock{Hosts: hostFile},
ClientConfig: restConfig,
Expand Down Expand Up @@ -297,7 +297,7 @@ type FwdServiceOpts struct {
ClientSet *kubernetes.Clientset
Context string
Namespace string
NamespaceIPLock sync.Mutex
NamespaceIPLock *sync.Mutex
ListOptions metav1.ListOptions
Hostfile *fwdport.HostFileWithLock
ClientConfig *restclient.Config
Expand Down

0 comments on commit b79b973

Please sign in to comment.