missed this in dht-compat merge

This commit is contained in:
Alex Grintsvayg 2018-03-23 12:50:18 -04:00
parent 69657750b8
commit 9ee5a3511d

View file

@ -53,7 +53,7 @@ class DefaultFormat(MessageTranslator):
return primitive[str(key)] # TODO: switch to int()
def fromPrimitive(self, msgPrimitive):
msgType = msgPrimitive[self.headerType]
msgType = self.get(msgPrimitive, self.headerType)
if msgType == self.typeRequest:
msg = msgtypes.RequestMessage(self.get(msgPrimitive, self.headerNodeID),
self.get(msgPrimitive, self.headerPayload),