Pārlūkot izejas kodu

confchange: clean up unnecessary block

Tobias Schottdorf 6 gadi atpakaļ
vecāks
revīzija
a5f785a232
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. 1 4
      raft/confchange/confchange.go

+ 1 - 4
raft/confchange/confchange.go

@@ -62,10 +62,7 @@ func (c Changer) EnterJoint(autoLeave bool, ccs ...pb.ConfChangeSingle) (tracker
 		return c.err(err)
 		return c.err(err)
 	}
 	}
 	// Clear the outgoing config.
 	// Clear the outgoing config.
-	{
-		*outgoingPtr(&cfg.Voters) = quorum.MajorityConfig{}
-
-	}
+	*outgoingPtr(&cfg.Voters) = quorum.MajorityConfig{}
 	// Copy incoming to outgoing.
 	// Copy incoming to outgoing.
 	for id := range incoming(cfg.Voters) {
 	for id := range incoming(cfg.Voters) {
 		outgoing(cfg.Voters)[id] = struct{}{}
 		outgoing(cfg.Voters)[id] = struct{}{}