From 91933872a0d585b14d5a487dd642a35be36302a8 Mon Sep 17 00:00:00 2001 From: C-NERD Date: Sat, 17 Sep 2022 10:28:40 +0100 Subject: [PATCH] minor tweek --- src/clown_limiter/tracker.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clown_limiter/tracker.nim b/src/clown_limiter/tracker.nim index b1cc856..22c4f18 100644 --- a/src/clown_limiter/tracker.nim +++ b/src/clown_limiter/tracker.nim @@ -13,7 +13,7 @@ type var write_lock : Lock - tracker : Table[string, tuple[calls, lastcalled : int]] ## to store ip address and number of calls made by address + tracker {.guard : write_lock.} : Table[string, tuple[calls, lastcalled : int]] ## to store ip address and number of calls made by address tracker_addr = addr(tracker) initLock(write_lock)