I did a bit of digging but I couldn't find why there's a global mutex on the Client type. This means only one request can be in flight at a time which is slow. I can see there's some getters that might need be protected from concurrent access, but a global client mutex seems like a blunt force solution.
|
mu sync.Mutex // guards every public call |
I did a bit of digging but I couldn't find why there's a global mutex on the
Clienttype. This means only one request can be in flight at a time which is slow. I can see there's some getters that might need be protected from concurrent access, but a global client mutex seems like a blunt force solution.scaleset/client.go
Line 44 in 91e1f40