mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Simplify membership interface: Does not pass the 'unused' token.
This commit is contained in:
@@ -487,7 +487,7 @@ func restartNode(cfg config.ServerConfig, snapshot *raftpb.Snapshot) (types.ID,
|
||||
zap.String("local-member-id", id.String()),
|
||||
zap.Uint64("commit-index", st.Commit),
|
||||
)
|
||||
cl := membership.NewCluster(cfg.Logger, "")
|
||||
cl := membership.NewCluster(cfg.Logger)
|
||||
cl.SetID(id, cid)
|
||||
s := raft.NewMemoryStorage()
|
||||
if snapshot != nil {
|
||||
@@ -565,7 +565,7 @@ func restartAsStandaloneNode(cfg config.ServerConfig, snapshot *raftpb.Snapshot)
|
||||
zap.Uint64("commit-index", st.Commit),
|
||||
)
|
||||
|
||||
cl := membership.NewCluster(cfg.Logger, "")
|
||||
cl := membership.NewCluster(cfg.Logger)
|
||||
cl.SetID(id, cid)
|
||||
s := raft.NewMemoryStorage()
|
||||
if snapshot != nil {
|
||||
|
||||
Reference in New Issue
Block a user