File Sharing MVP #384

Merged
sarah merged 52 commits from filesharing into master 2021-09-30 00:57:14 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 1938f14837 - Show all commits

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
}