diff --git a/protocol/connections/peerapp.go b/protocol/connections/peerapp.go index 37079be..14e0cd0 100644 --- a/protocol/connections/peerapp.go +++ b/protocol/connections/peerapp.go @@ -93,7 +93,7 @@ func (pa *PeerApp) listen() { switch peerMessage.Context { case event.ContextAck: pa.OnAcknowledgement(pa.connection.Hostname(), peerMessage.ID) - case event.ContextGetVal: + case event.ContextRetVal: req, ok := pa.RequestMapLookup(pa.connection.Hostname(), peerMessage.ID) if ok { pa.RetValHandler(pa.connection.Hostname(), []byte(req), peerMessage.Data)