Skip to content
Snippets Groups Projects
Commit 40f3a9a8 authored by benjamin's avatar benjamin
Browse files

improved the initial print on message sending

parent 52beafb4
No related branches found
No related tags found
3 merge requests!510Release,!424Hotfix/fast sending,!340Project/channels
......@@ -173,9 +173,6 @@ func sendCmixHelper(sender gateway.Sender, assembler messageAssembler, recipient
attempted = excludedRounds.NewSet()
}
jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
"%s", cmixParams.DebugTag, recipient)
stream := rng.GetStream()
defer stream.Close()
......@@ -184,13 +181,23 @@ func sendCmixHelper(sender gateway.Sender, assembler messageAssembler, recipient
optimalAttempts, ready := attemptTracker.GetOptimalNumAttempts()
if ready {
numAttempts = optimalAttempts
jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
"%s, sending non probe with %d optimalAttempts", cmixParams.DebugTag, recipient, numAttempts)
} else {
numAttempts = 4
jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
"%s, sending non probe with %d non optimalAttempts, insufficient data",
cmixParams.DebugTag, recipient, numAttempts)
}
} else {
jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
"%s, sending probe with %d Attempts, insufficient data",
cmixParams.DebugTag, recipient, numAttempts)
defer attemptTracker.SubmitProbeAttempt(numAttempts)
}
jww.INFO.Printf("")
for numRoundTries := uint(0); numRoundTries < cmixParams.RoundTries; numRoundTries,
numAttempts = numRoundTries+1, numAttempts+1 {
elapsed := netTime.Since(timeStart)
......
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