Do status change notification.

This commit is contained in:
Itamar Turner-Trauring 2022-08-11 16:16:17 -04:00
parent 94be227aaa
commit 9ad4e844e8

View File

@ -937,6 +937,7 @@ class HTTPNativeStorageServer(service.MultiService):
TODO as first pass, just to get the proof-of-concept going, we will just
assume we're always connected after an initial successful HTTP request.
Might do polling as follow-up ticket, in which case add link to that here.
"""
def __init__(self, server_id: bytes, announcement):
@ -1021,6 +1022,7 @@ class HTTPNativeStorageServer(service.MultiService):
def _got_version(self, version):
self._version = version
self._connection_status = connection_status.ConnectionStatus(True, "connected", [], time.time(), time.time())
self._on_status_changed.notify(self)
def get_storage_server(self):
"""