hub: for now, only run nostr_hub on LOCAL_SERVER

for #446
pull/1970/head
Ryan Barrett 2025-06-20 12:23:00 -07:00
rodzic 40afd66771
commit 964a990ab2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 2 dodań i 1 usunięć

3
hub.py
Wyświetl plik

@ -61,10 +61,11 @@ models.reset_protocol_properties()
# ...*before* initializing Flask app and request handlers, including health check,
# so that we don't go into service and start serving subscribers until the preload
# window is loaded
if LOCAL_SERVER or not DEBUG:
if LOCAL_SERVER:
# Nostr relays
nostr_hub.init()
if LOCAL_SERVER or not DEBUG:
# ATProto firehose consumer
for thread in threading.enumerate():
assert not thread.name.startswith('atproto_firehose.'), thread.name