From 0ce8437a238c90a6393297f47eb51d01a614bbd0 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Wed, 28 Feb 2024 21:28:11 +0300 Subject: [PATCH] fix(pushsync): store the chunk locally when no peers are available for nonreachable nodes --- pkg/pushsync/pushsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pushsync/pushsync.go b/pkg/pushsync/pushsync.go index 8f1597384a6..32425448d9d 100644 --- a/pkg/pushsync/pushsync.go +++ b/pkg/pushsync/pushsync.go @@ -367,7 +367,7 @@ func (ps *PushSync) pushToClosest(ctx context.Context, ch swarm.Chunk, origin bo if errors.Is(err, topology.ErrNotFound) { if ps.skipList.PruneExpiresAfter(ch.Address(), overDraftRefresh) == 0 { //no overdraft peers, we have depleted ALL peers if inflight == 0 { - if ps.fullNode && ps.topologyDriver.IsReachable() { + if ps.fullNode { if cac.Valid(ch) { go ps.unwrap(ch) }