Skip to content

Commit

Permalink
fix introducerless storage servers
Browse files Browse the repository at this point in the history
it turns out the _publish method registers with the tub too, not just the
introducer
  • Loading branch information
leif committed Feb 7, 2014
1 parent 6043715 commit 079493c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/allmydata/client.py
Expand Up @@ -310,9 +310,9 @@ def init_storage(self):
d = self.when_tub_ready()
# we can't do registerReference until the Tub is ready
def _publish(res):
furl_file = os.path.join(self.basedir, "private", "storage.furl").encode(get_filesystem_encoding())
furl = self.tub.registerReference(ss, furlFile=furl_file)
if self.introducer_client:
furl_file = os.path.join(self.basedir, "private", "storage.furl").encode(get_filesystem_encoding())
furl = self.tub.registerReference(ss, furlFile=furl_file)
ann = {"anonymous-storage-FURL": furl,
"permutation-seed-base32": self._init_permutation_seed(ss),
}
Expand Down

0 comments on commit 079493c

Please sign in to comment.