From 4404239433bdb5d43b7d2b8d27eb25702329fa0a Mon Sep 17 00:00:00 2001 From: gammazero Date: Thu, 7 Dec 2023 23:23:05 -0800 Subject: [PATCH] Skip deleting indexes if ad not available --- ipni-gc/reaper/reaper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipni-gc/reaper/reaper.go b/ipni-gc/reaper/reaper.go index 014d1b70e..c4738b107 100644 --- a/ipni-gc/reaper/reaper.go +++ b/ipni-gc/reaper/reaper.go @@ -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" } @@ -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" }