Quellcode durchsuchen

Merge pull request #4344 from shawnps/patch-3

raft: fix var name in comment
Gyu-Ho Lee vor 10 Jahren
Ursprung
Commit
73b71dc9a7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      raft/storage.go

+ 1 - 1
raft/storage.go

@@ -25,7 +25,7 @@ import (
 // index is unavailable because it predates the last snapshot.
 // index is unavailable because it predates the last snapshot.
 var ErrCompacted = errors.New("requested index is unavailable due to compaction")
 var ErrCompacted = errors.New("requested index is unavailable due to compaction")
 
 
-// ErrOutOfDataSnap is returned by Storage.CreateSnapshot when a requested
+// ErrSnapOutOfDate is returned by Storage.CreateSnapshot when a requested
 // index is older than the existing snapshot.
 // index is older than the existing snapshot.
 var ErrSnapOutOfDate = errors.New("requested index is older than the existing snapshot")
 var ErrSnapOutOfDate = errors.New("requested index is older than the existing snapshot")