properly close snoop at shutdown

This commit is contained in:
vyzo 2021-03-03 10:56:41 +02:00
parent 47d8c87486
commit 508fcb9d26

View File

@ -8,6 +8,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"go.uber.org/multierr"
"golang.org/x/xerrors" "golang.org/x/xerrors"
blocks "github.com/ipfs/go-block-format" blocks "github.com/ipfs/go-block-format"
@ -372,7 +373,7 @@ func (s *SplitStore) Close() error {
} }
} }
return s.env.Close() return multierr.Combine(s.tracker.Close(), s.env.Close())
} }
func (s *SplitStore) HeadChange(_, apply []*types.TipSet) error { func (s *SplitStore) HeadChange(_, apply []*types.TipSet) error {