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
64108828
Commit
64108828
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Add debugging info to garbled message processing path
parent
b7fc5441
No related branches found
No related tags found
2 merge requests
!510
Release
,
!253
General Cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmix/message/inProgress.go
+6
-1
6 additions, 1 deletion
cmix/message/inProgress.go
with
6 additions
and
1 deletion
cmix/message/inProgress.go
+
6
−
1
View file @
64108828
...
@@ -29,6 +29,8 @@ import (
...
@@ -29,6 +29,8 @@ import (
func
(
h
*
handler
)
CheckInProgressMessages
()
{
func
(
h
*
handler
)
CheckInProgressMessages
()
{
select
{
select
{
case
h
.
checkInProgress
<-
struct
{}{}
:
case
h
.
checkInProgress
<-
struct
{}{}
:
jww
.
DEBUG
.
Print
(
"[Garbled] Sent signal to check garbled "
+
"message queue..."
)
default
:
default
:
jww
.
WARN
.
Print
(
"Failed to check garbled messages due to full channel."
)
jww
.
WARN
.
Print
(
"Failed to check garbled messages due to full channel."
)
}
}
...
@@ -54,16 +56,19 @@ func (h *handler) recheckInProgress() {
...
@@ -54,16 +56,19 @@ func (h *handler) recheckInProgress() {
// Try to decrypt every garbled message, excising those whose counts are too
// Try to decrypt every garbled message, excising those whose counts are too
// high
// high
for
grbldMsg
,
ri
,
identity
,
has
:=
h
.
inProcess
.
Next
();
has
;
grbldMsg
,
ri
,
identity
,
has
=
h
.
inProcess
.
Next
()
{
for
grbldMsg
,
ri
,
identity
,
has
:=
h
.
inProcess
.
Next
();
has
;
grbldMsg
,
ri
,
identity
,
has
=
h
.
inProcess
.
Next
()
{
bundleMsgs
:=
[]
format
.
Message
{
grbldMsg
}
bundle
:=
Bundle
{
bundle
:=
Bundle
{
Round
:
id
.
Round
(
ri
.
ID
),
Round
:
id
.
Round
(
ri
.
ID
),
RoundInfo
:
rounds
.
MakeRound
(
ri
),
RoundInfo
:
rounds
.
MakeRound
(
ri
),
Messages
:
[]
format
.
Message
{
grbld
Msg
}
,
Messages
:
bundle
Msg
s
,
Finish
:
func
()
{},
Finish
:
func
()
{},
Identity
:
identity
,
Identity
:
identity
,
}
}
select
{
select
{
case
h
.
messageReception
<-
bundle
:
case
h
.
messageReception
<-
bundle
:
jww
.
INFO
.
Printf
(
"[GARBLE] Sent %d messages to process"
,
len
(
bundleMsgs
))
default
:
default
:
jww
.
WARN
.
Printf
(
"Failed to send bundle, channel full."
)
jww
.
WARN
.
Printf
(
"Failed to send bundle, channel full."
)
}
}
...
...
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