Skip to content

Commit

Permalink
Note to self.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Oct 12, 2023
1 parent 56692e8 commit cb14a6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serve/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ where
let txn = service.call(msg /* also send client addr */)?;

tokio::spawn(async move {
// TODO: Shouldn't this counter be incremented just before
// service.call() is invoked?
metrics
.num_inflight_requests
.fetch_add(1, Ordering::Relaxed);
Expand Down

0 comments on commit cb14a6a

Please sign in to comment.