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 { ...@@ -73,7 +73,7 @@ type Manager interface {
// (panic otherwise). If used, fill with random bits. // (panic otherwise). If used, fill with random bits.
// Will return an error if the network is unhealthy or if it fails to send // 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. // (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) ( SendManyCMIX(messages []TargetedCmixMessage, p CMIXParams) (
id.Round, []ephemeral.Id, error) id.Round, []ephemeral.Id, error)
...@@ -145,11 +145,11 @@ type Manager interface { ...@@ -145,11 +145,11 @@ type Manager interface {
// notifications. // notifications.
// source - A byte buffer of related data. Generally used in notifications. // source - A byte buffer of related data. Generally used in notifications.
// Example: Sender ID // Example: Sender ID
// There can be multiple "default" services, the must use the "default" tag // There can be multiple "default" services; if the "default" tag is used,
// and the identifier must be the client reception ID. // then the identifier must be the client reception ID.
// A service may have a nil response unless it is default. In general a // 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 // nil service is used to detect notifications when pickup is done by
// fingerprints // fingerprints.
AddService(clientID *id.ID, newService message.Service, AddService(clientID *id.ID, newService message.Service,
response message.Processor) response message.Processor)
...@@ -222,8 +222,8 @@ type Manager interface { ...@@ -222,8 +222,8 @@ type Manager interface {
// GetRoundResults adjudicates on the rounds requested. Checks if they are // GetRoundResults adjudicates on the rounds requested. Checks if they are
// older rounds or in progress rounds. // older rounds or in progress rounds.
GetRoundResults(roundList []id.Round, timeout time.Duration, GetRoundResults(timeout time.Duration, roundCallback RoundEventCallback,
roundCallback RoundEventCallback) error roundList ...id.Round) error
// LookupHistoricalRound looks up the passed historical round on the network. // LookupHistoricalRound looks up the passed historical round on the network.
LookupHistoricalRound( LookupHistoricalRound(
......
...@@ -64,8 +64,8 @@ type RoundEventCallback func(allRoundsSucceeded, timedOut bool, rounds map[id.Ro ...@@ -64,8 +64,8 @@ type RoundEventCallback func(allRoundsSucceeded, timedOut bool, rounds map[id.Ro
// GetRoundResults adjudicates on the rounds requested. Checks if they are // GetRoundResults adjudicates on the rounds requested. Checks if they are
// older rounds or in progress rounds. // older rounds or in progress rounds.
func (m *manager) GetRoundResults(roundList []id.Round, timeout time.Duration, func (m *manager) GetRoundResults(timeout time.Duration,
roundCallback RoundEventCallback) error { roundCallback RoundEventCallback, roundList ...id.Round) error {
jww.INFO.Printf("GetRoundResults(%v, %s)", roundList, timeout) 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