Page MenuHomePhabricator

[keyserver] Defer Redis publisher construction until actually used
ClosedPublic

Authored by ashoat on Apr 27 2022, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 10:09 PM
Unknown Object (File)
Thu, Jan 2, 9:22 PM
Unknown Object (File)
Wed, Dec 11, 11:05 AM
Unknown Object (File)
Nov 28 2024, 6:37 AM
Unknown Object (File)
Nov 24 2024, 1:38 PM
Unknown Object (File)
Nov 24 2024, 10:38 AM
Unknown Object (File)
Nov 22 2024, 1:49 PM
Unknown Object (File)
Nov 22 2024, 1:49 PM

Details

Summary

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().

Test Plan

Make sure yarn update-geoip works from a Docker buildscript

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/dockerize_node
Lint
No Lint Coverage
Unit
No Test Coverage