Add locking to "wakeupChanForTesting" of GRPC clients.

This commit is contained in:
Joachim Bauch 2024-01-30 16:31:07 +01:00
parent c4fce20678
commit 0cd4099f7b
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

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