Reintroducing domain check up here.

pull/1451/head
jMyles 2019-12-12 18:22:21 -08:00
parent 21ac24e0f8
commit 6f72db0e42
1 changed files with 8 additions and 1 deletions

View File

@ -928,10 +928,17 @@ class Learner:
self.log.info("Bad response from teacher {}: {} - {}".format(current_teacher, response, response.content))
return
if not set(self.learning_domains).intersection(set(current_teacher.serving_domains)):
_domains = ",".join(current_teacher.serving_domains)
self.log.debug(
f"{current_teacher} is serving {_domains}, which we aren't learning.")
return # This node is not serving any of our domains.
#
# Deserialize
#
try:
signature, node_payload = signature_splitter(response.content, return_remainder=True)
except BytestringSplittingError as e: