From 26185d9ea4e26169f438906e1c9b3057a34633c6 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 7 Jul 2024 15:27:24 -0400 Subject: [PATCH] Removed address comparison --- raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft.go b/raft.go index 31d9058..6d634b8 100644 --- a/raft.go +++ b/raft.go @@ -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 {