Skip to content

Commit

Permalink
fix(pushsync): store the chunk locally when no peers are available fo… (
Browse files Browse the repository at this point in the history
  • Loading branch information
istae authored Feb 29, 2024
1 parent 652977f commit b49d9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pushsync/pushsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b49d9e8

Please sign in to comment.