mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
Stop offering an API to create a control tub or handling the control tub
This commit is contained in:
parent
ddf5f461bf
commit
1de480dc37
@ -919,18 +919,6 @@ def create_main_tub(config, tub_options,
|
||||
return tub
|
||||
|
||||
|
||||
def create_control_tub():
|
||||
"""
|
||||
Creates a Foolscap Tub for use by the control port. This is a
|
||||
localhost-only ephemeral Tub, with no control over the listening
|
||||
port or location
|
||||
"""
|
||||
control_tub = Tub()
|
||||
portnum = iputil.listenOnUnused(control_tub)
|
||||
log.msg("Control Tub location set to 127.0.0.1:%s" % (portnum,))
|
||||
return control_tub
|
||||
|
||||
|
||||
class Node(service.MultiService):
|
||||
"""
|
||||
This class implements common functionality of both Client nodes and Introducer nodes.
|
||||
@ -967,10 +955,6 @@ class Node(service.MultiService):
|
||||
else:
|
||||
self.nodeid = self.short_nodeid = None
|
||||
|
||||
self.control_tub = control_tub
|
||||
if self.control_tub is not None:
|
||||
self.control_tub.setServiceParent(self)
|
||||
|
||||
self.log("Node constructed. " + __full_version__)
|
||||
iputil.increase_rlimits()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user