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
7105524e
Commit
7105524e
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Make sure critical messaging processing thead is started
parent
973f1bcb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!510
Release
,
!342
Preliminary memory profiling & bugfix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmix/client.go
+3
-0
3 additions, 0 deletions
cmix/client.go
cmix/critical.go
+8
-1
8 additions, 1 deletion
cmix/critical.go
with
11 additions
and
1 deletion
cmix/client.go
+
3
−
0
View file @
7105524e
...
@@ -246,6 +246,9 @@ func (c *client) Follow(report ClientErrorReport) (stoppable.Stoppable, error) {
...
@@ -246,6 +246,9 @@ func (c *client) Follow(report ClientErrorReport) (stoppable.Stoppable, error) {
// Start the processes for the identity handler
// Start the processes for the identity handler
multi
.
Add
(
c
.
Tracker
.
StartProcesses
())
multi
.
Add
(
c
.
Tracker
.
StartProcesses
())
//Start the critical processing thread
multi
.
Add
(
c
.
crit
.
startProcessies
())
return
multi
,
nil
return
multi
,
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
cmix/critical.go
+
8
−
1
View file @
7105524e
package
cmix
package
cmix
import
(
import
(
"time"
jww
"github.com/spf13/jwalterweatherman"
jww
"github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/cmix/health"
"gitlab.com/elixxir/client/cmix/health"
"gitlab.com/elixxir/client/stoppable"
"gitlab.com/elixxir/client/stoppable"
...
@@ -10,7 +12,6 @@ import (
...
@@ -10,7 +12,6 @@ import (
"gitlab.com/elixxir/primitives/states"
"gitlab.com/elixxir/primitives/states"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id/ephemeral"
"gitlab.com/xx_network/primitives/id/ephemeral"
"time"
)
)
const
criticalRawMessagesKey
=
"RawCriticalMessages"
const
criticalRawMessagesKey
=
"RawCriticalMessages"
...
@@ -58,6 +59,12 @@ func newCritical(kv *versioned.KV, hm health.Monitor,
...
@@ -58,6 +59,12 @@ func newCritical(kv *versioned.KV, hm health.Monitor,
return
c
return
c
}
}
func
(
c
*
critical
)
startProcessies
()
*
stoppable
.
Single
{
stop
:=
stoppable
.
NewSingle
(
"criticalStopper"
)
go
c
.
runCriticalMessages
(
stop
)
return
stop
}
func
(
c
*
critical
)
runCriticalMessages
(
stop
*
stoppable
.
Single
)
{
func
(
c
*
critical
)
runCriticalMessages
(
stop
*
stoppable
.
Single
)
{
for
{
for
{
select
{
select
{
...
...
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