Skip to content

Commit

Permalink
remove event reverse from bsky service
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 5, 2024
1 parent 46dd922 commit 223972b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions services/bsky/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const {
ServerConfig,
BskyAppView,
makeAlgos,
PeriodicModerationEventReversal,
} = require('@atproto/bsky')

const main = async () => {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 223972b

Please sign in to comment.