Skip to content

Commit

Permalink
add constructor for round robin
Browse files Browse the repository at this point in the history
  • Loading branch information
dt committed Oct 24, 2015
1 parent d3e9c63 commit 4b16d7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/discovery/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ type RoundRobinProvider struct {
index uint64
}

func NewRoundRobinProvider() *RoundRobinProvider {
return &RoundRobinProvider{0}
}

// Ensure RoundRobinProvider implements ProviderStrategy
var _ ProviderStrategy = (*RoundRobinProvider)(nil)

Expand Down

0 comments on commit 4b16d7a

Please sign in to comment.