Follow the Hypercore protocol rename

This commit is contained in:
Luke Murphy
2020-05-16 17:58:44 +02:00
parent c9b0339a4b
commit 586ff28d07
11 changed files with 740 additions and 80 deletions

View File

@ -20,9 +20,8 @@ class FlatTreeIterator:
self.seek(self.index)
# TODO(decentral1se): Once we get to the point of actually using this
# module in hypercore or wherever it is needed we should consider whether
# or not to make this a real Python iterator using the protocol methods of
# __iter__ and __next__
# module in hypercore, we should consider whether or not to make this a
# real Python iterator using the protocol methods of __iter__ and __next__
def next(self) -> int:
"""The next index in the tree."""
self.offset += 1