Actually, we can just go straight to learning from the teacher now. Fixes #557.

pull/559/head
jMyles 2018-11-12 21:40:42 -08:00
parent 852816e7ec
commit 78aeee44c5
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ class Learner:
return False return False
elif now: elif now:
self.load_seednodes() self.load_seednodes()
self._learning_task() # Unhandled error might happen here. TODO: Call this in a safer place. self.learn_from_teacher_node()
self.learning_deferred = self._learning_task.start(interval=self._SHORT_LEARNING_DELAY) self.learning_deferred = self._learning_task.start(interval=self._SHORT_LEARNING_DELAY)
self.learning_deferred.addErrback(self.handle_learning_errors) self.learning_deferred.addErrback(self.handle_learning_errors)
return self.learning_deferred return self.learning_deferred