This commit is contained in:
Eugene Kabanov 2023-08-11 00:31:47 +03:00 committed by GitHub
parent a7f708bea8
commit 60e6fc55bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1548,7 +1548,7 @@ proc isCounterLeaked*(name: string): bool {.noinit.} =
## number of `closed` requests. ## number of `closed` requests.
let tracker = TrackerCounter(opened: 0'u64, closed: 0'u64) let tracker = TrackerCounter(opened: 0'u64, closed: 0'u64)
let res = getThreadDispatcher().counters.getOrDefault(name, tracker) let res = getThreadDispatcher().counters.getOrDefault(name, tracker)
res.opened == res.closed res.opened != res.closed
iterator trackerCounters*( iterator trackerCounters*(
loop: PDispatcher loop: PDispatcher