From 223972b84d258dc2680fbd742d23018f33f38f85 Mon Sep 17 00:00:00 2001 From: dholms Date: Thu, 4 Jan 2024 21:52:56 -0600 Subject: [PATCH] remove event reverse from bsky service --- services/bsky/api.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/bsky/api.js b/services/bsky/api.js index 42737d72b56..534c102971d 100644 --- a/services/bsky/api.js +++ b/services/bsky/api.js @@ -27,7 +27,6 @@ const { ServerConfig, BskyAppView, makeAlgos, - PeriodicModerationEventReversal, } = require('@atproto/bsky') const main = async () => { @@ -133,18 +132,9 @@ const main = async () => { algos, }) - const periodicModerationEventReversal = new PeriodicModerationEventReversal( - bsky.ctx, - ) - const periodicModerationEventReversalRunning = - periodicModerationEventReversal.run() - await bsky.start() // Graceful shutdown (see also https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/) const shutdown = async () => { - // Gracefully shutdown periodic-moderation-event-reversal before destroying bsky instance - periodicModerationEventReversal.destroy() - await periodicModerationEventReversalRunning await bsky.destroy() } process.on('SIGTERM', shutdown)