From 2a9914363f89bee0213c6a46b76e5d8994730bd1 Mon Sep 17 00:00:00 2001 From: devin ivy Date: Mon, 11 Dec 2023 15:20:34 -0500 Subject: [PATCH] Stop running what's hot view maintainer on appview (#1953) stop running what's hot view maintainer on appview --- services/bsky/api.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/services/bsky/api.js b/services/bsky/api.js index c159a632a82..c4882335761 100644 --- a/services/bsky/api.js +++ b/services/bsky/api.js @@ -25,7 +25,6 @@ const { Redis, ServerConfig, BskyAppView, - ViewMaintainer, makeAlgos, PeriodicModerationEventReversal, } = require('@atproto/bsky') @@ -132,14 +131,6 @@ const main = async () => { imgInvalidator, algos, }) - // separate db needed for more permissions - const viewMaintainerDb = new PrimaryDatabase({ - url: env.dbMigratePostgresUrl, - schema: env.dbPostgresSchema, - poolSize: 2, - }) - const viewMaintainer = new ViewMaintainer(viewMaintainerDb, 1800) - const viewMaintainerRunning = viewMaintainer.run() const periodicModerationEventReversal = new PeriodicModerationEventReversal( bsky.ctx, @@ -154,9 +145,6 @@ const main = async () => { periodicModerationEventReversal.destroy() await periodicModerationEventReversalRunning await bsky.destroy() - viewMaintainer.destroy() - await viewMaintainerRunning - await viewMaintainerDb.close() }) }