Skip to content

Commit

Permalink
Skip deleting indexes if ad not available
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Dec 8, 2023
1 parent 48e87a9 commit 4404239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipni-gc/reaper/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (s *scythe) deleteEntries(ctx context.Context, adCid cid.Cid) error {
if errors.Is(err, errIndexerWrite) {
return err
}
log.Warnw("Cannot get advertisement from car store, will try publisher", "err", err)
log.Warnw("Cannot get advertisement from car store, will try publisher", "err", err, "adCid", adCid)
}
source = "CAR"
}
Expand All @@ -594,8 +594,8 @@ func (s *scythe) deleteEntries(ctx context.Context, adCid cid.Cid) error {
if errors.Is(err, errIndexerWrite) {
return err
}
log.Warnw("Cannot get advertisement from publisher, not deleting entries", "err", err)
return errors.New("cannot get index data from advertisement to delete")
log.Warnw("Cannot get advertisement from publisher, not deleting entries", "err", err, "adCid", adCid)
return nil
}
source = "synced from publisher"
}
Expand Down

0 comments on commit 4404239

Please sign in to comment.