Realign the structs to decrease memory footprint.

Add the timeout settings to address the connection drops.
This commit is contained in:
2023-12-14 17:16:38 +00:00
parent cd9c650226
commit b19b17b7c4
6 changed files with 40 additions and 48 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ import (
)
type RateLimitConfig struct {
Req int `json:"req"`
Interval string `json:"interval"`
RateCounterTicker *goratecounter.RateCounter
Interval string `json:"interval"`
Req int `json:"req"`
}
var rateLimits map[string]RateLimitConfig