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
410a14d0
Commit
410a14d0
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
remove round events from single use messages
parent
2fef4163
No related branches found
No related tags found
2 merge requests
!170
Release
,
!142
remove round events from single use messages
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
single/transmission.go
+2
-7
2 additions, 7 deletions
single/transmission.go
with
2 additions
and
7 deletions
single/transmission.go
+
2
−
7
View file @
410a14d0
...
@@ -122,7 +122,7 @@ func (m *Manager) transmitSingleUse(partner contact2.Contact, payload []byte,
...
@@ -122,7 +122,7 @@ func (m *Manager) transmitSingleUse(partner contact2.Contact, payload []byte,
if
err
!=
nil
{
if
err
!=
nil
{
errorString
:=
fmt
.
Sprintf
(
"failed to send single-use transmission "
+
errorString
:=
fmt
.
Sprintf
(
"failed to send single-use transmission "
+
"CMIX message: %+v"
,
err
)
"CMIX message: %+v"
,
err
)
jww
.
ERROR
.
Print
(
errorString
)
jww
.
ERROR
.
Print
f
(
errorString
)
// Exit the state timeout handler, delete the state from map, and
// Exit the state timeout handler, delete the state from map, and
// return an error on the callback
// return an error on the callback
...
@@ -139,14 +139,9 @@ func (m *Manager) transmitSingleUse(partner contact2.Contact, payload []byte,
...
@@ -139,14 +139,9 @@ func (m *Manager) transmitSingleUse(partner contact2.Contact, payload []byte,
"message because the timeout handler quit."
)
"message because the timeout handler quit."
)
return
return
}
}
jww
.
DEBUG
.
Printf
(
"Sent single-use transmission CMIX "
+
im
:=
fmt
.
Sprintf
(
"Sent single-use transmission CMIX "
+
"message to %s and ephemeral ID %d on round %d."
,
"message to %s and ephemeral ID %d on round %d."
,
partner
.
ID
,
ephID
.
Int64
(),
round
)
partner
.
ID
,
ephID
.
Int64
(),
round
)
jww
.
DEBUG
.
Print
(
im
)
if
m
.
client
!=
nil
{
m
.
client
.
ReportEvent
(
1
,
"SingleUse"
,
"MessageSend"
,
im
)
}
}()
}()
return
nil
return
nil
...
...
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