diff --git a/batched/system.go b/batched/system.go index 5637e55..111ee11 100644 --- a/batched/system.go +++ b/batched/system.go @@ -225,6 +225,11 @@ func (s *BatchProvidingSystem) Run() { keys = append(keys, c.Hash()) } + // in case after removing all the invalid CIDs there are no valid ones left + if len(keys) == 0 { + continue + } + for !s.rsys.Ready() { log.Debugf("reprovider system not ready") select { diff --git a/go.mod b/go.mod index 351074c..1e7ad5a 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,6 @@ require ( github.com/ipfs/go-datastore v0.4.5 github.com/ipfs/go-ipfs-blockstore v0.1.0 github.com/ipfs/go-ipfs-blocksutil v0.0.1 - github.com/ipfs/go-ipfs-ds-help v0.0.1 github.com/ipfs/go-ipfs-exchange-offline v0.0.1 github.com/ipfs/go-ipfs-routing v0.1.0 github.com/ipfs/go-ipld-cbor v0.0.3