make min_index optionnal in allocator's constructor
This commit is contained in:
parent
bfcb1add48
commit
ea013b8066
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class NoAvailableKeysError(ValueError):
|
||||||
|
|
||||||
|
|
||||||
class CompletedKeys(object):
|
class CompletedKeys(object):
|
||||||
def __init__(self, min_index, max_index):
|
def __init__(self, max_index, min_index=0):
|
||||||
self._max_index = max_index
|
self._max_index = max_index
|
||||||
self._min_index = min_index
|
self._min_index = min_index
|
||||||
self._slabs = RBTree()
|
self._slabs = RBTree()
|
||||||
|
|
Reference in a new issue