Store the tub on the subclass, since we'll want it (or rather its Listeners) for

NURL construction.
This commit is contained in:
Itamar Turner-Trauring
2022-06-30 14:52:12 -04:00
parent 03d9ff395c
commit 1798966f03
2 changed files with 15 additions and 11 deletions

View File

@ -819,9 +819,7 @@ 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("/")
self.tub.negotiationClass.add_storage_server(
self.tub.myCertificate, ss, swissnum.encode("ascii")
)
self.tub.negotiationClass.add_storage_server(ss, swissnum.encode("ascii"))
announcement["anonymous-storage-FURL"] = furl