Skip to content
Snippets Groups Projects
Commit eac777c2 authored by Jono Wenger's avatar Jono Wenger
Browse files

Make GetRoundResults variadic

parent 35ba2d7c
No related branches found
No related tags found
3 merge requests!510Release,!207WIP: Client Restructure,!203Symmetric broadcast
......@@ -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,
roundCallback RoundEventCallback) error
GetRoundResults(timeout time.Duration, roundCallback RoundEventCallback,
roundList ...id.Round) error
// LookupHistoricalRound looks up the passed historical round on the network.
LookupHistoricalRound(
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment