Skip to content

Commit

Permalink
Removed address comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsadair committed Jul 7, 2024
1 parent 8a0bfeb commit 26185d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (r *Raft) restore() error {
// the first time and there is no existing configuration. This should
// only be called on a single, voting member of the cluster.
func (r *Raft) Bootstrap(configuration map[string]string) error {
if address, ok := configuration[r.id]; !ok || r.address != address {
if _, ok := configuration[r.id]; !ok {
return errors.New("configuration must contain this node")
}
if r.configuration != nil {
Expand Down

0 comments on commit 26185d9

Please sign in to comment.