Skip to content

Commit

Permalink
Add locking to "wakeupChanForTesting" of GRPC clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Jan 30, 2024
1 parent c4fce20 commit 0cd4099
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ import (
)

func (c *GrpcClients) getWakeupChannelForTesting() <-chan struct{} {
c.mu.Lock()
defer c.mu.Unlock()

if c.wakeupChanForTesting != nil {
return c.wakeupChanForTesting
}
Expand Down

0 comments on commit 0cd4099

Please sign in to comment.