Skip to content

Commit

Permalink
Merge pull request #88 from jmsadair/advertised-addresses-support
Browse files Browse the repository at this point in the history
Removed address comparison
  • Loading branch information
jmsadair authored Jul 9, 2024
2 parents bf0bc48 + 26185d9 commit c7c6456
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 c7c6456

Please sign in to comment.