metrics: Decrement hs_intro_established_count on intro circuit close.

Closes #40751.

Signed-off-by: Gabriela Moldovan <gabi@torproject.org>
This commit is contained in:
Gabriela Moldovan
2023-02-10 20:31:36 +00:00
parent e390a7cdee
commit 21b3397f9b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -65,6 +65,6 @@ void hs_metrics_update_by_service(const hs_metrics_key_t key,
/** Established introduction circuit closes. This is called when
* INTRO_ESTABLISHED circuit is marked for close. */
#define hs_metrics_close_established_intro(i) \
hs_metrics_update_by_ident(HS_METRICS_NUM_ESTABLISHED_INTRO, (i), 0, 1)
hs_metrics_update_by_ident(HS_METRICS_NUM_ESTABLISHED_INTRO, (i), 0, -1)
#endif /* !defined(TOR_FEATURE_HS_HS_METRICS_H) */