mirror of
https://github.com/logos-storage/das-research.git
synced 2026-05-21 08:49:27 +00:00
parametrize dumbRandomScheduler
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
a03371cf4e
commit
0a418b35b2
@ -371,9 +371,8 @@ class Validator:
|
|||||||
else:
|
else:
|
||||||
self.segmentShuffleGen = shuffled(self.segmentsToSend, self.shuffleLines)
|
self.segmentShuffleGen = shuffled(self.segmentsToSend, self.shuffleLines)
|
||||||
|
|
||||||
def runDumbRandomScheduler(self):
|
def runDumbRandomScheduler(self, tries = 100):
|
||||||
# dumb random scheduler picking segments at random and trying to send it
|
# dumb random scheduler picking segments at random and trying to send it
|
||||||
tries = 100
|
|
||||||
t = tries
|
t = tries
|
||||||
while t:
|
while t:
|
||||||
if self.rowIDs:
|
if self.rowIDs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user