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
eac777c2
Commit
eac777c2
authored
3 years ago
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Make GetRoundResults variadic
parent
35ba2d7c
No related branches found
No related tags found
3 merge requests
!510
Release
,
!207
WIP: Client Restructure
,
!203
Symmetric broadcast
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
network/interface.go
+6
-6
6 additions, 6 deletions
network/interface.go
network/results.go
+2
-2
2 additions, 2 deletions
network/results.go
with
8 additions
and
8 deletions
network/interface.go
+
6
−
6
View file @
eac777c2
...
...
@@ -73,7 +73,7 @@ type Manager interface {
// (panic otherwise). If used, fill with random bits.
// Will return an error if the network is unhealthy or if it fails to send
// (along with the reason). Blocks until successful send or err.
// WARNING: Do not roll your own crypto
// WARNING: Do not roll your own crypto
.
SendManyCMIX
(
messages
[]
TargetedCmixMessage
,
p
CMIXParams
)
(
id
.
Round
,
[]
ephemeral
.
Id
,
error
)
...
...
@@ -145,11 +145,11 @@ type Manager interface {
// notifications.
// source - A byte buffer of related data. Generally used in notifications.
// Example: Sender ID
// There can be multiple "default" services
, the must use
the "default" tag
//
and
the identifier must be the client reception ID.
// There can be multiple "default" services
; if
the "default" tag
is used,
//
then
the identifier must be the client reception ID.
// A service may have a nil response unless it is default. In general a
// nil service is used to detect notifications when pickup is done by
// fingerprints
// fingerprints
.
AddService
(
clientID
*
id
.
ID
,
newService
message
.
Service
,
response
message
.
Processor
)
...
...
@@ -222,8 +222,8 @@ type Manager interface {
// GetRoundResults adjudicates on the rounds requested. Checks if they are
// older rounds or in progress rounds.
GetRoundResults
(
roundList
[]
id
.
Round
,
timeout
time
.
Duration
,
round
Callback
RoundEventCallback
)
error
GetRoundResults
(
timeout
time
.
Duration
,
roundCallback
RoundEventCallback
,
round
List
...
id
.
Round
)
error
// LookupHistoricalRound looks up the passed historical round on the network.
LookupHistoricalRound
(
...
...
This diff is collapsed.
Click to expand it.
network/results.go
+
2
−
2
View file @
eac777c2
...
...
@@ -64,8 +64,8 @@ type RoundEventCallback func(allRoundsSucceeded, timedOut bool, rounds map[id.Ro
// GetRoundResults adjudicates on the rounds requested. Checks if they are
// older rounds or in progress rounds.
func
(
m
*
manager
)
GetRoundResults
(
roundList
[]
id
.
Round
,
timeout
time
.
Duration
,
roundCallback
RoundEventCallback
)
error
{
func
(
m
*
manager
)
GetRoundResults
(
timeout
time
.
Duration
,
roundCallback
RoundEventCallback
,
roundList
...
id
.
Round
)
error
{
jww
.
INFO
.
Printf
(
"GetRoundResults(%v, %s)"
,
roundList
,
timeout
)
...
...
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