Skip to content

Commit

Permalink
Fix to the stats tracking for reducer calls
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Jun 7, 2024
1 parent bb4888b commit b81143c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpacetimeDBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,10 @@ private void OnMessageProcessComplete(PreProcessedMessage preProcessed)
if (callerIdentity == clientIdentity)
{
// This was a request that we initiated
var requestId = transactionUpdate.SubscriptionUpdate.RequestId;
var requestId = transactionUpdate.Event.FunctionCall.RequestId;
if (!stats.ReducerRequestTracker.FinishTrackingRequest(requestId))
{
Logger.LogWarning($"Failed to finish tracking reducer request: {requestId}");
Logger.LogWarning($"Failed to finish tracking reducer request: {requestId} reducer={reducer}");
}
}
OnMessageProcessCompleteUpdate(transactionEvent, dbOps);
Expand Down

0 comments on commit b81143c

Please sign in to comment.