Skip to content

Commit

Permalink
Vet
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Mar 26, 2021
1 parent 528dab0 commit 256e540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resolver/dns/dns_resolver.go
Expand Up @@ -190,7 +190,7 @@ type dnsResolver struct {
wg sync.WaitGroup
disableServiceConfig bool

stopPolling *grpcsync.Event
stopPolling *grpcsync.Event
}

// poll begins or ends asynchronous polling of the resolver based on whether
Expand All @@ -206,7 +206,7 @@ func (d *dnsResolver) poll(updateStateErr error) {
return
}
// The goroutine that is running poll() has already been created.
if d.stopPolling != nil{
if d.stopPolling != nil {
return
}
d.stopPolling = grpcsync.NewEvent()
Expand Down

0 comments on commit 256e540

Please sign in to comment.