Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comms
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
comms
Commits
36e23d01
Commit
36e23d01
authored
Mar 16, 2021
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add GetWrappedRound to instance level
parent
2a893f33
No related branches found
No related tags found
1 merge request
!58
Revert "Modify waiting lock"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
network/instance.go
+6
-1
6 additions, 1 deletion
network/instance.go
with
6 additions
and
1 deletion
network/instance.go
+
6
−
1
View file @
36e23d01
...
@@ -507,11 +507,16 @@ func (i *Instance) GetCmixGroup() *cyclic.Group {
...
@@ -507,11 +507,16 @@ func (i *Instance) GetCmixGroup() *cyclic.Group {
return
i
.
cmixGroup
.
Get
()
return
i
.
cmixGroup
.
Get
()
}
}
// Get the round of a given ID
// Get the round of a given ID
as a roundInfo (protobuff)
func
(
i
*
Instance
)
GetRound
(
id
id
.
Round
)
(
*
pb
.
RoundInfo
,
error
)
{
func
(
i
*
Instance
)
GetRound
(
id
id
.
Round
)
(
*
pb
.
RoundInfo
,
error
)
{
return
i
.
roundData
.
GetRound
(
int
(
id
))
return
i
.
roundData
.
GetRound
(
int
(
id
))
}
}
// Get the round of a given ID as a ds.Round object
func
(
i
*
Instance
)
GetWrappedRound
(
id
id
.
Round
)
(
*
ds
.
Round
,
error
)
{
return
i
.
roundData
.
GetWrappedRound
(
int
(
id
))
}
// Get an update ID
// Get an update ID
func
(
i
*
Instance
)
GetRoundUpdate
(
updateID
int
)
(
*
pb
.
RoundInfo
,
error
)
{
func
(
i
*
Instance
)
GetRoundUpdate
(
updateID
int
)
(
*
pb
.
RoundInfo
,
error
)
{
return
i
.
roundUpdates
.
GetUpdate
(
updateID
)
return
i
.
roundUpdates
.
GetUpdate
(
updateID
)
...
...
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