mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
parent
33dc9eac58
commit
77ac90180f
1
changelog.d/694.bugfix
Normal file
1
changelog.d/694.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix the bridge spamming RSS feeds repeatedly.
|
@ -366,7 +366,7 @@ export class FeedReader {
|
||||
const elapsed = Date.now() - fetchingStarted;
|
||||
Metrics.feedFetchMs.set(elapsed);
|
||||
|
||||
const sleepFor = Math.min(this.sleepingInterval - elapsed, 0);
|
||||
const sleepFor = Math.max(this.sleepingInterval - elapsed, 0);
|
||||
log.debug(`Feed fetching took ${elapsed / 1000}s, sleeping for ${sleepFor / 1000}s`);
|
||||
|
||||
if (elapsed > this.sleepingInterval) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user