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)
Fri, Sep 13, 7:39 AM
Unknown Object (File)
Mon, Sep 2, 2:58 PM
Unknown Object (File)
Mon, Aug 26, 4:41 AM
Unknown Object (File)
Mon, Aug 26, 2:32 AM
Unknown Object (File)
Sun, Aug 25, 7:59 PM
Unknown Object (File)
Aug 18 2024, 12:07 PM
Unknown Object (File)
Aug 8 2024, 2:17 PM
Unknown Object (File)
Aug 8 2024, 2:17 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable