Files
threshold/internal
Elim Tsiagbey 5741807b4a fix: monitorUpstreamConnectionState CPU consumption (#3884)
* fix: monitorUpstreamConnectionState CPU consumption

`monitorUpstreamConnectionState()` is a goroutine that listens for GRPC client connection changes using GRPC's `WaitForStateChange` method. `monitorUpstreamConnectionState()` was consuming the a lot of CPU. It was continuously running and not actually waiting for state changes. The `state` for `monitorUpstreamConnectionState()` was not getting correctly updated which caused the loop to continuously run instead of waiting for new state changes.

Update GRPC `WaitForStateChange` method to use the same `state` that gets updated.
2023-10-23 19:35:12 -04:00
..
2023-10-20 14:26:58 -04:00
2023-09-05 13:10:03 -04:00
2023-08-11 10:31:53 -07:00
2023-09-05 13:10:03 -04:00
2023-09-05 13:10:03 -04:00
2023-08-11 10:31:53 -07:00
2023-10-06 08:12:14 -05:00
2023-08-11 10:31:53 -07:00