Skip to content
Snippets Groups Projects
Commit c22f3320 authored by Jake Taylor's avatar Jake Taylor
Browse files

comments

parent 56fe377c
No related branches found
No related tags found
2 merge requests!231Revert "Update store to print changes to the partners list",!187Xx 3829/triggers
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
// Use of this source code is governed by a license that can be found in the // // Use of this source code is governed by a license that can be found in the //
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package api package api
import ( import (
...@@ -18,7 +19,7 @@ import ( ...@@ -18,7 +19,7 @@ import (
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
) )
// Enum of possible round results to pass back // RoundResult is the enum of possible round results to pass back
type RoundResult uint type RoundResult uint
const ( const (
...@@ -40,7 +41,7 @@ func (rr RoundResult) String() string { ...@@ -40,7 +41,7 @@ func (rr RoundResult) String() string {
} }
} }
// Callback interface which reports the requested rounds. // RoundEventCallback interface which reports the requested rounds.
// Designed such that the caller may decide how much detail they need. // Designed such that the caller may decide how much detail they need.
// allRoundsSucceeded: // allRoundsSucceeded:
// Returns false if any rounds in the round map were unsuccessful. // Returns false if any rounds in the round map were unsuccessful.
...@@ -60,7 +61,7 @@ type historicalRoundsComm interface { ...@@ -60,7 +61,7 @@ type historicalRoundsComm interface {
GetHost(hostId *id.ID) (*connect.Host, bool) GetHost(hostId *id.ID) (*connect.Host, bool)
} }
// 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 (c *Client) GetRoundResults(roundList []id.Round, timeout time.Duration, func (c *Client) GetRoundResults(roundList []id.Round, timeout time.Duration,
roundCallback RoundEventCallback) error { roundCallback RoundEventCallback) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment