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
e1725846
Commit
e1725846
authored
2 years ago
by
benjamin
Browse files
Options
Downloads
Patches
Plain Diff
glued interfaces together
parent
ab7a84fa
No related branches found
No related tags found
2 merge requests
!510
Release
,
!431
made lower paralell regs unique to js and hacked increase in num registrations...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmix/nodes/interfaces.go
+4
-0
4 additions, 0 deletions
cmix/nodes/interfaces.go
cmix/nodes/registrar.go
+2
-2
2 additions, 2 deletions
cmix/nodes/registrar.go
with
6 additions
and
2 deletions
cmix/nodes/interfaces.go
+
4
−
0
View file @
e1725846
...
...
@@ -27,6 +27,10 @@ type Registrar interface {
// to register with nodes.
StartProcesses
(
numParallel
uint
)
stoppable
.
Stoppable
// IncreaseParallelNodeRegistration increases the number of parallel node
// registrations by num
IncreaseParallelNodeRegistration
(
num
int
)
func
()
(
stoppable
.
Stoppable
,
error
)
// GetNodeKeys returns a MixCypher for the topology and a list of nodes it did
// not have a key for. If there are missing keys, then returns nil.
GetNodeKeys
(
topology
*
connect
.
Circuit
)
(
MixCypher
,
error
)
...
...
This diff is collapsed.
Click to expand it.
cmix/nodes/registrar.go
+
2
−
2
View file @
e1725846
...
...
@@ -108,11 +108,11 @@ func (r *registrar) StartProcesses(numParallel uint) stoppable.Stoppable {
// IncreaseParallelNodeRegistration increases the number of parallel node
// registrations by num
func
(
r
*
registrar
)
IncreaseParallelNodeRegistration
(
numParallel
u
int
)
func
()
(
stoppable
.
Stoppable
,
error
)
{
func
(
r
*
registrar
)
IncreaseParallelNodeRegistration
(
numParallel
int
)
func
()
(
stoppable
.
Stoppable
,
error
)
{
return
func
()
(
stoppable
.
Stoppable
,
error
)
{
multi
:=
stoppable
.
NewMulti
(
"NodeRegistrationsIncrease"
)
for
i
:=
uint
(
0
);
i
<
numParallel
;
i
++
{
for
i
:=
uint
(
0
);
i
<
uint
(
numParallel
)
;
i
++
{
stop
:=
stoppable
.
NewSingle
(
"NodeRegistration Increase"
+
strconv
.
Itoa
(
int
(
i
)))
go
registerNodes
(
r
,
r
.
session
,
stop
,
&
r
.
inProgress
,
&
r
.
attempts
)
...
...
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