mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #9657 from yaojingguo/remove-dead-code
contrib/raftexample: remove useless check
This commit is contained in:
commit
02ed51d300
@ -70,7 +70,7 @@ func (s *kvstore) readCommits(commitC <-chan *string, errorC <-chan error) {
|
||||
if err == raftsnap.ErrNoSnapshot {
|
||||
return
|
||||
}
|
||||
if err != nil && err != raftsnap.ErrNoSnapshot {
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
log.Printf("loading snapshot at term %d and index %d", snapshot.Metadata.Term, snapshot.Metadata.Index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user