Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disabling pingHubInterval since it is causing large queries #813

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as cors from 'cors'
import * as https from 'https'
import * as http from 'http'
import logger, { logging, sphinxLogger } from './src/utils/logger'
import { pingHubInterval, checkInvitesHubInterval } from './src/hub'
import { checkInvitesHubInterval } from './src/hub'
import { genUsersInterval } from './src/utils/proxy'
import {
setupDatabase,
Expand Down Expand Up @@ -47,7 +47,7 @@ async function start() {
mainSetup()
// // IF NOT UNLOCK, go ahead and start this now
if (config.hub_api_url && !config.unlock) {
pingHubInterval(30000)
//pingHubInterval(30000)
genUsersInterval(60000)
}
}
Expand All @@ -73,7 +73,7 @@ async function finishSetup() {
}
if (config.unlock) {
// IF UNLOCK, start this only after unlocked!
pingHubInterval(15000)
//pingHubInterval(15000)
}
leadershipBoardInterval(1800000)
setupDone()
Expand Down
Loading