Skip to content

Commit aaf0a68

Browse files
authored
renames errFoo -> errClosing
1 parent 9fa9e34 commit aaf0a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/storage/storage.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/sirupsen/logrus"
2525
)
2626

27-
var errFoo = errors.New("the db is in closing state")
27+
var errClosing = errors.New("the db is in closing state")
2828

2929
type Storage struct {
3030
closingMutex sync.Mutex
@@ -171,7 +171,7 @@ func (s *Storage) Put(startTime, endTime time.Time, key *Key, val *tree.Tree, sp
171171
defer s.closingMutex.Unlock()
172172

173173
if s.closing {
174-
return errFoo
174+
return errClosing
175175
}
176176
logrus.WithFields(logrus.Fields{
177177
"startTime": startTime.String(),
@@ -218,7 +218,7 @@ func (s *Storage) Get(startTime, endTime time.Time, key *Key) (*tree.Tree, *segm
218218
defer s.closingMutex.Unlock()
219219

220220
if s.closing {
221-
return nil, nil, "", 100, errFoo
221+
return nil, nil, "", 100, errClosing
222222
}
223223

224224
logrus.WithFields(logrus.Fields{

0 commit comments

Comments
 (0)