Skip to content

Commit

Permalink
Merge branch 'pds-v2' into import-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 1, 2023
2 parents dc4aa22 + 033557c commit 9c3e215
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions services/pds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const {
envToSecrets,
readEnv,
httpLogger,
PeriodicModerationActionReversal,
} = require('@atproto/pds')
const pkg = require('@atproto/pds/package.json')

Expand All @@ -29,16 +28,6 @@ const main = async () => {
const secrets = envToSecrets(env)
const pds = await PDS.create(cfg, secrets)

// If the PDS is configured to proxy moderation, this will be running on appview instead of pds.
// Also don't run this on the sequencer leader, which may not be configured regarding moderation proxying at all.
const periodicModerationActionReversal =
pds.ctx.cfg.bskyAppView.proxyModeration ||
pds.ctx.cfg.sequencerLeaderEnabled
? null
: new PeriodicModerationActionReversal(pds.ctx)
const periodicModerationActionReversalRunning =
periodicModerationActionReversal?.run()

await pds.start()

httpLogger.info('pds is running')
Expand Down

0 comments on commit 9c3e215

Please sign in to comment.