Skip to content
Snippets Groups Projects
Commit f7350042 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Add debug prints to the message ID lookup logic

parent 1ee5c9e4
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!10Make the message id index unique
......@@ -160,10 +160,17 @@ func (w *wasmModel) ReceiveMessage(channelID *id.ID,
// Attempt a lookup on the MessageID if it is non-zero to find an existing
// entry for it. This occurs any time a sender receives their own message
// from the mixnet.
emptyID := cryptoChannel.MessageID{}
jww.DEBUG.Printf("messageID: %s, blank messageID: %s",
messageID.String(),
emptyID)
if !messageID.Equals(cryptoChannel.MessageID{}) {
jww.DEBUG.Printf("non-empty messageID detected")
uuid, err := w.msgIDLookup(messageID)
if err != nil {
// message is already in the database, no insert necessary
jww.DEBUG.Printf("MessageID found: %d", uuid)
// message is already in the database, no
// insert necessary
return uuid
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment