mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Disconnecting from Redis after unit tests complete
This commit is contained in:
@@ -40,6 +40,10 @@ class RateLimits {
|
||||
this.rateLimiter = new RateLimiterRedis(rateLimitOptions)
|
||||
}
|
||||
|
||||
closeRedis() {
|
||||
redisClient.disconnect()
|
||||
}
|
||||
|
||||
/*
|
||||
This function controls the tierd request-per-minute (RPM) rate limits.
|
||||
This is an older implementation that is currently not used.
|
||||
|
||||
Reference in New Issue
Block a user