Skip to content

Commit

Permalink
fix: Lower seenTTL to 5 mins to reduce memory consumption (#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu authored Oct 17, 2023
1 parent 44aa4f4 commit ec2711d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nasty-mirrors-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": patch
---

fix: Lower seenTTL to 5 mins to reduce memory consumption
2 changes: 1 addition & 1 deletion apps/hubble/src/network/p2p/gossipNodeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class LibP2PNode {
msgIdFn: this.getMessageId.bind(this),
directPeers: options.directPeers || [],
canRelayMessage: true,
seenTTL: 1000 * 60 * 10, // Bump up the default to handle large flood of messages. 2 mins was not sufficient to prevent a loop
seenTTL: 1000 * 60 * 5, // Bump up the default to handle large flood of messages. 2 mins was not sufficient to prevent a loop
scoreThresholds: { ...options.scoreThresholds },
});

Expand Down

0 comments on commit ec2711d

Please sign in to comment.