Debugging value gettings
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Sarah Jamie Lewis 2021-09-03 12:43:42 -07:00
parent 19088c1734
commit 1938f14837
1 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ func (pa *PeerApp) listen() {
reqStr := []byte(req.(string))
pa.RetValHandler(pa.connection.Hostname(), reqStr, peerMessage.Data)
pa.getValRequests.Delete(peerMessage.ID)
} else {
log.Errorf("could not find val request for %v", peerMessage.ID)
}
default:
if pa.IsAllowed(pa.connection.Hostname()) {
@ -114,7 +116,7 @@ func (pa *PeerApp) SendMessage(message model2.PeerMessage) error {
}
serialized, err := json.Marshal(message)
if err == nil {
log.Debugf("sending plaintext of length %v", len(serialized))
//log.Debugf("sending plaintext of length %v", len(serialized))
pa.connection.Send(serialized)
return nil
}