Commit f9eee3cf authored by metacertain's avatar metacertain Committed by GitHub

fix: do not confirm replication happened unless chunk is stored (#1754)

parent 2933147c
......@@ -157,7 +157,7 @@ func (ps *PushSync) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream)
_, err = ps.storer.Put(ctxd, storage.ModePutSync, chunk)
if err != nil {
ps.logger.Errorf("pushsync: chunk store: %v", err)
return fmt.Errorf("chunk store: %w", err)
}
debit := ps.accounting.PrepareDebit(p.Address, price)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment