Disconnecting from Redis after unit tests complete

This commit is contained in:
Chris Troutner
2020-02-06 14:32:59 -08:00
parent c7f7c68fac
commit 86951eccac
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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.