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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
05e40087
Commit
05e40087
authored
Sep 20, 2021
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
small debugging improvements
parent
9a5e3b12
No related branches found
No related tags found
2 merge requests
!53
Release
,
!26
Protonet
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
network/follow.go
+1
-0
1 addition, 0 deletions
network/follow.go
network/gateway/hostPool.go
+4
-1
4 additions, 1 deletion
network/gateway/hostPool.go
storage/rounds/unknownRounds.go
+11
-0
11 additions, 0 deletions
storage/rounds/unknownRounds.go
with
16 additions
and
1 deletion
network/follow.go
+
1
−
0
View file @
05e40087
...
@@ -307,6 +307,7 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
...
@@ -307,6 +307,7 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
jww
.
DEBUG
.
Printf
(
"New Earliest Remaining: %d"
,
earliestRemaining
)
jww
.
DEBUG
.
Printf
(
"New Earliest Remaining: %d"
,
earliestRemaining
)
}
}
bo
roundsWithMessages2
:=
identity
.
UR
.
Iterate
(
func
(
rid
id
.
Round
)
bool
{
roundsWithMessages2
:=
identity
.
UR
.
Iterate
(
func
(
rid
id
.
Round
)
bool
{
if
gwRoundsState
.
Checked
(
rid
)
{
if
gwRoundsState
.
Checked
(
rid
)
{
return
rounds
.
Checker
(
rid
,
filterList
,
identity
.
CR
)
return
rounds
.
Checker
(
rid
,
filterList
,
identity
.
CR
)
...
...
This diff is collapsed.
Click to expand it.
network/gateway/hostPool.go
+
4
−
1
View file @
05e40087
...
@@ -367,11 +367,14 @@ func (h *HostPool) replaceHostNoStore(newId *id.ID, oldPoolIndex uint32) error {
...
@@ -367,11 +367,14 @@ func (h *HostPool) replaceHostNoStore(newId *id.ID, oldPoolIndex uint32) error {
h
.
hostMap
[
*
newId
]
=
oldPoolIndex
h
.
hostMap
[
*
newId
]
=
oldPoolIndex
// Clean up and move onto next Host
// Clean up and move onto next Host
oldHostIDStr
:=
"unknown"
if
oldHost
!=
nil
{
if
oldHost
!=
nil
{
oldHostIDStr
=
oldHost
.
GetId
()
.
String
()
delete
(
h
.
hostMap
,
*
oldHost
.
GetId
())
delete
(
h
.
hostMap
,
*
oldHost
.
GetId
())
go
oldHost
.
Disconnect
()
go
oldHost
.
Disconnect
()
}
}
jww
.
DEBUG
.
Printf
(
"Replaced Host at %d with new Host %s"
,
oldPoolIndex
,
jww
.
DEBUG
.
Printf
(
"Replaced Host at %d [%s] with new Host %s"
,
oldPoolIndex
,
oldHostIDStr
,
newId
.
String
())
newId
.
String
())
return
nil
return
nil
...
...
This diff is collapsed.
Click to expand it.
storage/rounds/unknownRounds.go
+
11
−
0
View file @
05e40087
...
@@ -197,3 +197,14 @@ func (urs *UnknownRounds) Delete() {
...
@@ -197,3 +197,14 @@ func (urs *UnknownRounds) Delete() {
func
(
urs
*
UnknownRounds
)
unmarshal
(
b
[]
byte
)
error
{
func
(
urs
*
UnknownRounds
)
unmarshal
(
b
[]
byte
)
error
{
return
json
.
Unmarshal
(
b
,
&
urs
.
rounds
)
return
json
.
Unmarshal
(
b
,
&
urs
.
rounds
)
}
}
func
(
urs
*
UnknownRounds
)
Get
(
round
id
.
Round
)(
present
bool
,
numchecked
uint64
){
urs
.
mux
.
Lock
()
defer
urs
.
mux
.
Unlock
()
numcheck
,
exist
:=
urs
.
rounds
[
round
]
if
!
exist
{
return
false
,
0
}
return
exist
,
*
numcheck
}
\ No newline at end of file
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