fix: more economical use of redis clients
This commit is contained in:
@@ -32,7 +32,7 @@ class EventBusService {
|
|||||||
case "subscriber":
|
case "subscriber":
|
||||||
return subscriber
|
return subscriber
|
||||||
default:
|
default:
|
||||||
throw new Error("Unknown type: ", type)
|
return new Redis(config.redisURI)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user