From ce65c0c911b92e94d56a52f278b3ca6dc5c2b704 Mon Sep 17 00:00:00 2001 From: zhouchencheng Date: Fri, 17 Jul 2020 16:25:54 +0800 Subject: [PATCH] bugfix: notify supernode client piece task success under cdn pattern Signed-off-by: zhouchencheng --- dfget/core/downloader/p2p_downloader/client_writer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dfget/core/downloader/p2p_downloader/client_writer.go b/dfget/core/downloader/p2p_downloader/client_writer.go index 73e733951..9f5132e9e 100644 --- a/dfget/core/downloader/p2p_downloader/client_writer.go +++ b/dfget/core/downloader/p2p_downloader/client_writer.go @@ -215,6 +215,7 @@ func (cw *ClientWriter) write(piece *Piece) error { startTime := time.Now() if !cw.p2pPattern { cw.targetQueue.Put(piece) + go sendSuccessPiece(cw.api, cw.cfg.RV.Cid, piece, time.Since(startTime), cw.notifyQueue) return nil }