raft: Fixed missing package name in README.md (#11566)

This commit is contained in:
po3rin 2020-01-30 03:15:00 +09:00 committed by GitHub
parent 3898452b54
commit 53f15caf73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ The primary object in raft is a Node. Either start a Node from scratch using raf
To start a three-node cluster
```go
storage := raft.NewMemoryStorage()
c := &Config{
c := &raft.Config{
ID: 0x01,
ElectionTick: 10,
HeartbeatTick: 1,
@ -95,7 +95,7 @@ To restart a node from previous state:
storage.SetHardState(state)
storage.Append(entries)
c := &Config{
c := &raft.Config{
ID: 0x01,
ElectionTick: 10,
HeartbeatTick: 1,