mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: specify voters and learners via snapshot
This commit is contained in:
@@ -24,8 +24,8 @@ func BenchmarkOneNode(b *testing.B) {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
s := NewMemoryStorage()
|
||||
rn := newTestRawNode(1, []uint64{1}, 10, 1, s)
|
||||
s := newTestMemoryStorage(withPeers(1))
|
||||
rn := newTestRawNode(1, 10, 1, s)
|
||||
n := newNode(rn)
|
||||
go n.run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user