Skip to content

Commit

Permalink
Merge pull request #363 from ripienaar/election_deprecate
Browse files Browse the repository at this point in the history
deprecate election poc
  • Loading branch information
ripienaar authored Mar 11, 2022
2 parents de5ac8c + b4c50aa commit 48ea938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 196 deletions.
2 changes: 2 additions & 0 deletions election/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ type Backoff interface {
}

// NewElection creates a leader election, it will either create/join a stream called streamName or use the pre-made stream passed as option
//
// Deprecated: this is now deprecated, KV represents a better election backend than this implementation.
func NewElection(name string, wonCb func(), lostCb func(), streamName string, mgr *jsm.Manager, opts ...Option) (*election, error) {
o, err := newOptions(opts...)
if err != nil {
Expand Down
196 changes: 0 additions & 196 deletions election/election_test.go

This file was deleted.

0 comments on commit 48ea938

Please sign in to comment.