Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #37 from ipfs/fix/provide-many-empty-keys
Browse files Browse the repository at this point in the history
Fix batched providing of empty keys
  • Loading branch information
aschmahmann committed May 27, 2021
2 parents d391dae + 28e02d7 commit 549fe53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions batched/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 549fe53

Please sign in to comment.