We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98fa60 commit f7d663cCopy full SHA for f7d663c
src/WebJobs.Script.Grpc/Channel/GrpcWorkerChannel.cs
@@ -993,7 +993,10 @@ internal void EnsureTimerStarted()
993
internal IEnumerable<TimeSpan> GetLatencies()
994
{
995
EnsureTimerStarted();
996
- return _workerStatusLatencyHistory;
+ lock (_syncLock)
997
+ {
998
+ return _workerStatusLatencyHistory.ToArray();
999
+ }
1000
}
1001
1002
internal async void OnTimer(object sender, System.Timers.ElapsedEventArgs e)
0 commit comments