diff --git a/cmd/lotus-chainwatch/processor/mpool.go b/cmd/lotus-chainwatch/processor/mpool.go index ad75baddc..1f5826170 100644 --- a/cmd/lotus-chainwatch/processor/mpool.go +++ b/cmd/lotus-chainwatch/processor/mpool.go @@ -30,11 +30,10 @@ func (p *Processor) subMpool(ctx context.Context) { loop: for { - time.Sleep(10 * time.Millisecond) select { case update := <-sub: updates = append(updates, update) - default: + case <-time.After(10 * time.Millisecond): break loop } }