]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tidy-up some comments and logging messages
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 15 Dec 2007 01:24:46 +0000 (18:24 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 15 Dec 2007 01:24:46 +0000 (18:24 -0700)
src/allmydata/mutable.py

index 29e1ba2a3f8c41269103e15f487f9f642479a13f..8fde89815a1d587ef3db376d187b2273fd0df9e1 100644 (file)
@@ -691,7 +691,7 @@ class Retrieve:
         return plaintext
 
     def _done(self, contents):
-        self.log("DONE, contents: %r" % contents)
+        self.log("DONE")
         self._running = False
         eventually(self._done_deferred.callback, contents)
 
@@ -733,17 +733,14 @@ class Publish:
         It will wait until at least wait_for_numpeers peers are connected
         before it starts uploading
 
-        If wait_for_numpeers is None, then wait_for_numpeers is set to the
-        number of shares total (M).
+        If wait_for_numpeers is None then it will be set to a default value
+        (currently 1).
         """
-
-        self.log("starting publish")
-
         if wait_for_numpeers is None:
-            # TODO: perhaps the default should be something like:
-            # wait_for_numpeers = self._node.get_total_shares()
             wait_for_numpeers = 1
 
+        self.log("starting publish")
+
         d = self._node._client.introducer_client.when_enough_peers(wait_for_numpeers)
         d.addCallback(lambda dummy: self._after_enough_peers(newdata))
         return d
@@ -1127,7 +1124,7 @@ class Publish:
         # time. (Note: in the future, when we remove the _query_peers() step
         # and instead speculate about [or remember] which shares are where,
         # surprises here are *not* indications of UncoordinatedWriteError,
-        # and we'll need to respond to them more gracefully.
+        # and we'll need to respond to them more gracefully.)
 
         target_map, shares_per_peer, peer_storage_servers = target_info