mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-18 15:28:12 +00:00
A nicer API.
This commit is contained in:
@ -64,7 +64,6 @@ from allmydata.interfaces import (
|
||||
from allmydata.nodemaker import NodeMaker
|
||||
from allmydata.blacklist import Blacklist
|
||||
from allmydata import node
|
||||
from .protocol_switch import update_foolscap_or_http_class
|
||||
|
||||
|
||||
KiB=1024
|
||||
@ -820,7 +819,9 @@ class _Client(node.Node, pollmixin.PollMixin):
|
||||
furl_file = self.config.get_private_path("storage.furl").encode(get_filesystem_encoding())
|
||||
furl = self.tub.registerReference(FoolscapStorageServer(ss), furlFile=furl_file)
|
||||
(_, _, swissnum) = furl.rpartition("/")
|
||||
update_foolscap_or_http_class(self.tub.negotiationClass, self.tub.myCertificate, ss, swissnum.encode("ascii"))
|
||||
self.tub.negotiationClass.add_storage_server(
|
||||
self.tub.myCertificate, ss, swissnum.encode("ascii")
|
||||
)
|
||||
|
||||
announcement["anonymous-storage-FURL"] = furl
|
||||
|
||||
|
Reference in New Issue
Block a user