Blacklist when threshhold reached, not surpassed

This commit is contained in:
F. Eugene Aumson
2020-09-16 19:06:16 -04:00
parent ec08715090
commit f53a512e70

View File

@@ -15,7 +15,7 @@ export class RfqMakerBlacklist {
}
if (didTimeout) {
this._makerTimeoutStreakLength[makerUrl] += 1;
if (this._makerTimeoutStreakLength[makerUrl] > this._timeoutStreakThreshold) {
if (this._makerTimeoutStreakLength[makerUrl] === this._timeoutStreakThreshold) {
this._makerBlacklistedUntilDate[makerUrl] =
Date.now() + this._blacklistDurationMinutes * constants.ONE_MINUTE_MS;
}