From 23de3e32d6bb09cb17d03239d8c21e678b9f3675 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 29 Feb 2008 20:01:54 -0700 Subject: [PATCH] client.py: remove confusing no-longer-used code from get_encoding_parameters --- src/allmydata/client.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 12afba92..c0ea63ae 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -207,19 +207,6 @@ class Client(node.Node, testutil.PollMixin): def get_encoding_parameters(self): return self.DEFAULT_ENCODING_PARAMETERS - p = self.introducer_client.encoding_parameters # a tuple - # TODO: make the 0.7.1 introducer publish a dict instead of a tuple - params = {"k": p[0], - "happy": p[1], - "n": p[2], - } - if len(p) == 3: - # TODO: compatibility with 0.7.0 Introducer that doesn't specify - # segment_size - self.log("Introducer didn't provide max_segment_size, using 1MiB", - level=log.UNUSUAL) - params["max_segment_size"] = 1*MiB - return params def connected_to_introducer(self): if self.introducer_client: -- 2.45.2