clear store error in responseHook if ErrResourceDoesNotExist appear

This commit is contained in:
Lawrence, Rendall
2022-04-14 01:52:52 +03:00
parent 781fa9440f
commit 57d9c8e78e
2 changed files with 5 additions and 2 deletions

View File

@@ -611,7 +611,9 @@ func (ps *store) collectGarbage(cutoff time.Time) error {
func (ps *store) Stop() stop.Result {
c := make(stop.Channel)
go func() {
close(ps.closed)
if ps.closed != nil {
close(ps.closed)
}
ps.wg.Wait()
// Explicitly deallocate our storage.