merge patch to integrate decentralized directories with patch "download: use hierarchical logging"

This commit is contained in:
Zooko O'Whielacronx 2007-12-03 15:27:21 -07:00
parent 33a5f8ba6b
commit e28d7c580c
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ class FakeClient:
def __init__(self, mode="good", num_servers=50):
self.mode = mode
self.num_servers = num_servers
self.introducer_client = FakeIntroducerClient()
def log(self, *args, **kwargs):
pass
def get_permuted_peers(self, storage_index, include_myself):
peers = [ ("%20d"%fakeid, "%20d"%fakeid, FakePeer(self.mode),)
for fakeid in range(self.num_servers) ]