put setServiceParent calls in create_*

This commit is contained in:
meejah 2018-01-31 10:45:17 -07:00
parent 26007f363b
commit f80e61fef6

View File

@ -246,6 +246,9 @@ def create_client_from_config(config):
)
i2p_provider.setServiceParent(client)
tor_provider.setServiceParent(client)
for ic in introducer_clients:
ic.setServiceParent(client)
storage_broker.setServiceParent(client)
return defer.succeed(client)
@ -369,10 +372,7 @@ class _Client(node.Node, pollmixin.PollMixin):
self.introducer_clients = introducer_clients
self.introducer_furls = introducer_furls # appears completely unused (but for tests?)
for ic in introducer_clients:
ic.setServiceParent(self)
self.storage_broker = storage_farm_broker
self.storage_broker.setServiceParent(self)
self.init_stats_provider()
self.init_secrets()