forked from LBRYCommunity/lbry-sdk
send startup event right after setup
This commit is contained in:
parent
202a957a1a
commit
1c2849235c
3 changed files with 7 additions and 0 deletions
|
@ -235,6 +235,7 @@ class AuthJSONRPCServer(AuthorizedBase):
|
|||
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||
if not self.analytics_manager.is_started:
|
||||
self.analytics_manager.start()
|
||||
self.analytics_manager.send_server_startup()
|
||||
for lc_name, lc_time in self._looping_call_times.items():
|
||||
self.looping_call_manager.start(lc_name, lc_time)
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@ class FakeAnalytics:
|
|||
def send_server_startup_success(self):
|
||||
pass
|
||||
|
||||
def send_server_startup(self):
|
||||
pass
|
||||
|
||||
def shutdown(self):
|
||||
pass
|
||||
|
||||
|
|
|
@ -84,6 +84,9 @@ class FakeAnalytics:
|
|||
def send_credits_sent(self):
|
||||
pass
|
||||
|
||||
def send_server_startup(self):
|
||||
pass
|
||||
|
||||
|
||||
class CommandTestCase(IntegrationTestCase):
|
||||
|
||||
|
|
Loading…
Reference in a new issue