smol enh to ratelimiter
This commit is contained in:
parent
53c5780322
commit
f54990a502
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ impl RateLimiter {
|
|||
} else {
|
||||
// when elapsed() < TIME_THRESHOLD_S && msgcounter >= MSG_THRESHOLD
|
||||
// LimiterResp::Skip
|
||||
LimiterResp::Sleep(TIME_MIN_S_F64 - self.lastmsgtimer.elapsed().as_secs_f64())
|
||||
LimiterResp::Sleep(TIME_MIN_S_F64 - self.lastmsgtimer.elapsed().as_secs_f64() + 0.1)
|
||||
};
|
||||
|
||||
botlog::trace(
|
||||
|
|
Loading…
Reference in a new issue