ioredis 4.14.0 introduced an issue where custom TLS options are no longer honored. I reported it here: luin/ioredis#947 This has been preventing the server from using GitHub tokens, however I'm not sure whether or not this has been causing noticeable issues. For now let's downgrade to the latest working version, which I've confirmed working via the script (checked in).
27 lines
585 B
JavaScript
27 lines
585 B
JavaScript
'use strict'
|
|
|
|
const config = require('config').util.toObject()
|
|
console.log(config)
|
|
const GithubConstellation = require('../services/github/github-constellation')
|
|
|
|
const { persistence } = new GithubConstellation({
|
|
persistence: config.public.persistence,
|
|
service: config.public.services.github,
|
|
private: config.private,
|
|
})
|
|
|
|
async function main() {
|
|
const tokens = await persistence.initialize()
|
|
console.log(`${tokens.length} tokens loaded`)
|
|
await persistence.stop()
|
|
}
|
|
|
|
;(async () => {
|
|
try {
|
|
await main()
|
|
} catch (e) {
|
|
console.error(e)
|
|
process.exit(1)
|
|
}
|
|
})()
|