Skip to content

Commit

Permalink
change error name
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Sep 15, 2024
1 parent 70192be commit c6b60b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snapshot7/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
)

var (
ErrNoAltInSnapStorage = errors.New("there is no alt snap in the storage")
ErrNoAltSnapInSnapStorage = errors.New("there is no alt snap in the storage")
)

// TODO: do we even need this?
Expand Down Expand Up @@ -89,7 +89,7 @@ func (s *Storage) OldestTick() int {

func (s *Storage) altSnapshot() (*Snapshot, error) {
if s.altSnap.snap == nil {
return nil, ErrNoAltInSnapStorage
return nil, ErrNoAltSnapInSnapStorage
}
return s.altSnap.snap, nil
}
Expand Down

0 comments on commit c6b60b3

Please sign in to comment.