mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
put setServiceParent calls in create_*
This commit is contained in:
parent
26007f363b
commit
f80e61fef6
@ -246,6 +246,9 @@ def create_client_from_config(config):
|
|||||||
)
|
)
|
||||||
i2p_provider.setServiceParent(client)
|
i2p_provider.setServiceParent(client)
|
||||||
tor_provider.setServiceParent(client)
|
tor_provider.setServiceParent(client)
|
||||||
|
for ic in introducer_clients:
|
||||||
|
ic.setServiceParent(client)
|
||||||
|
storage_broker.setServiceParent(client)
|
||||||
return defer.succeed(client)
|
return defer.succeed(client)
|
||||||
|
|
||||||
|
|
||||||
@ -369,10 +372,7 @@ class _Client(node.Node, pollmixin.PollMixin):
|
|||||||
|
|
||||||
self.introducer_clients = introducer_clients
|
self.introducer_clients = introducer_clients
|
||||||
self.introducer_furls = introducer_furls # appears completely unused (but for tests?)
|
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 = storage_farm_broker
|
||||||
self.storage_broker.setServiceParent(self)
|
|
||||||
|
|
||||||
self.init_stats_provider()
|
self.init_stats_provider()
|
||||||
self.init_secrets()
|
self.init_secrets()
|
||||||
|
Loading…
Reference in New Issue
Block a user