remember info for init_client_storage_broker temporarily

This commit is contained in:
meejah 2018-01-28 18:01:10 -07:00
parent 3c4e065e63
commit 279bd814fc
2 changed files with 12 additions and 2 deletions

View File

@ -531,12 +531,18 @@ class _Client(node.Node, pollmixin.PollMixin):
from allmydata.node import create_tub, create_tub_options
# this is temporary; create_client() should create a
# storage-broker and pass it in -- that method already has
# all these objects created...
default_connection_handlers, foolscap_connection_handlers = create_connection_handlers(reactor, self.basedir, self.config, self._i2p_provider, self._tor_provider)
def tub_creator(handler_overrides={}, **kwargs):
tub_options = create_tub_options(self.config)
return create_tub(
tub_options,
self._default_connection_handlers,
self._foolscap_connection_handlers,
default_connection_handlers,
foolscap_connection_handlers,
handler_overrides=handler_overrides,
**kwargs
)

View File

@ -698,6 +698,10 @@ class Node(service.MultiService):
self.get_config = config.get_config # XXX stopgap
self.nickname = config.nickname # XXX stopgap
# this can go away once Client.init_client_storage_broker is moved into create_client()
self._i2p_provider = i2p_provider
self._tor_provider = tor_provider
self.init_tempdir()
self.create_log_tub()