mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 15:40:01 -07:00
clear store error in responseHook if ErrResourceDoesNotExist appear
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user