The current behavior means that anything that inadvertedly imports redis.js (update-geoip.js, for instance) will crash if it can't reach Redis.
This diff makes it so RedisPublisher only tries to connect to Redis on the first call to sendMessage().
Differential D3870
[keyserver] Defer Redis publisher construction until actually used ashoat on Apr 27 2022, 8:13 PM. Authored by Tags None Referenced Files
Details The current behavior means that anything that inadvertedly imports redis.js (update-geoip.js, for instance) will crash if it can't reach Redis. This diff makes it so RedisPublisher only tries to connect to Redis on the first call to sendMessage(). Make sure yarn update-geoip works from a Docker buildscript
Diff Detail
|