Skip to content

Commit 61fa8c0

Browse files
ralyodioclaude
andauthored
remove-feed.js exits when done instead of waiting on the write queue (#179)
Claude-Session: https://claude.ai/code/session_013GX6xEcjGFxcvcMCFLhQng Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent d17aa2a commit 61fa8c0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎packages/db/src/remove-feed.js‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ async function main() {
6464
console.log(`${result.host} is now refused by every insert path`);
6565
}
6666

67-
main().catch((err) => {
68-
console.error(err instanceof Error ? err.message : err);
69-
process.exit(1);
70-
});
67+
// connect() may open a Redis-backed write queue that holds the event loop, so
68+
// the script says when it is done rather than waiting for something to close.
69+
main()
70+
.then(() => process.exit(0))
71+
.catch((err) => {
72+
console.error(err instanceof Error ? err.message : err);
73+
process.exit(1);
74+
});

0 commit comments

Comments
 (0)