We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83236d4 commit 38da3a3Copy full SHA for 38da3a3
log.go
@@ -16,7 +16,6 @@ package raft
16
17
import (
18
"fmt"
19
- "log"
20
21
pb "go.etcd.io/raft/v3/raftpb"
22
)
@@ -72,9 +71,6 @@ func newLog(storage Storage, logger Logger) *raftLog {
72
71
// newLogWithSize returns a log using the given storage and max
73
// message size.
74
func newLogWithSize(storage Storage, logger Logger, maxApplyingEntsSize entryEncodingSize) *raftLog {
75
- if storage == nil {
76
- log.Panic("storage must not be nil")
77
- }
78
firstIndex, err := storage.FirstIndex()
79
if err != nil {
80
panic(err) // TODO(bdarnell)
0 commit comments