Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
fe02e5a7
Commit
fe02e5a7
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
print fix
parent
03a86237
No related branches found
No related tags found
1 merge request
!170
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
single/transmission.go
+2
-2
2 additions, 2 deletions
single/transmission.go
with
2 additions
and
2 deletions
single/transmission.go
+
2
−
2
View file @
fe02e5a7
...
...
@@ -68,15 +68,15 @@ func (m *Manager) transmitSingleUse(partner contact2.Contact, payload []byte,
// Get ephemeral ID address space size; this blocks until the address space
// size is set for the first time
addressSize
:=
m
.
net
.
GetAddressSize
()
timeStart
:=
netTime
.
Now
()
// Create new CMIX message containing the transmission payload
cmixMsg
,
dhKey
,
rid
,
ephID
,
err
:=
m
.
makeTransmitCmixMessage
(
partner
,
payload
,
tag
,
MaxMsgs
,
addressSize
,
timeout
,
netTime
.
Now
()
,
rng
)
payload
,
tag
,
MaxMsgs
,
addressSize
,
timeout
,
timeStart
,
rng
)
if
err
!=
nil
{
return
errors
.
Errorf
(
"failed to create new CMIX message: %+v"
,
err
)
}
timeStart
:=
netTime
.
Now
()
startValid
:=
timeStart
.
Add
(
-
2
*
timeout
)
endValid
:=
timeStart
.
Add
(
2
*
timeout
)
jww
.
DEBUG
.
Printf
(
"Created single-use transmission CMIX message with new ID "
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment