mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
Make NURLs a set.
This commit is contained in:
parent
c6daeaf4a3
commit
aa144fc623
0
newsfragments/4046.minor
Normal file
0
newsfragments/4046.minor
Normal file
@ -837,7 +837,11 @@ class _Client(node.Node, pollmixin.PollMixin):
|
||||
if hasattr(self.tub.negotiationClass, "add_storage_server"):
|
||||
nurls = self.tub.negotiationClass.add_storage_server(ss, swissnum.encode("ascii"))
|
||||
self.storage_nurls = nurls
|
||||
announcement[storage_client.ANONYMOUS_STORAGE_NURLS] = [n.to_text() for n in nurls]
|
||||
# There is code in e.g. storage_client.py that checks if an
|
||||
# announcement has changed. Since NURL order isn't meaningful,
|
||||
# we don't want a change in the order to count as a change, so we
|
||||
# send the NURLs as a set. CBOR supports sets, as does Foolscap.
|
||||
announcement[storage_client.ANONYMOUS_STORAGE_NURLS] = {n.to_text() for n in nurls}
|
||||
announcement["anonymous-storage-FURL"] = furl
|
||||
|
||||
enabled_storage_servers = self._enable_storage_servers(
|
||||
|
Loading…
x
Reference in New Issue
Block a user