Skip to content

Commit

Permalink
Merge pull request #194 from hyeonLewis/dec-pending-rpc
Browse files Browse the repository at this point in the history
metrics: Decrease pending requests count
  • Loading branch information
hyeonLewis authored Dec 31, 2024
2 parents 7672928 + 7edc9ce commit 0bada75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions networks/rpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (h *handler) startCallProc(fn func(*callProc)) {
defer h.callWG.Done()
defer cancel()
defer atomic.AddInt64(&pendingRequestCount, -1)
defer rpcPendingRequestsCount.Dec(1)
fn(&callProc{ctx: ctx})
}()
}
Expand Down

0 comments on commit 0bada75

Please sign in to comment.