diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-02-06 22:44:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-02-06 22:44:55 +0900 |
| commit | 96bc17aa1014983d5e6bf8b4c05d898156995a0d (patch) | |
| tree | fdf7c68bdbf3784988351004127db988d7c40c29 /src/server/api/streaming.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.gz sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.bz2 sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.zip | |
Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/server/api/streaming.ts')
| -rw-r--r-- | src/server/api/streaming.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index f8f3c0ff4a..d70cec03dc 100644 --- a/src/server/api/streaming.ts +++ b/src/server/api/streaming.ts @@ -23,10 +23,10 @@ module.exports = (server: http.Server) => { let ev: EventEmitter; - if (config.redis) { + if (config.redis.isJust()) { // Connect to Redis const subscriber = redis.createClient( - config.redis.port, config.redis.host); + config.redis.get().port, config.redis.get().host); subscriber.subscribe('misskey'); |