Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
bugfix: notify supernode client piece task success under cdn pattern
Browse files Browse the repository at this point in the history
Signed-off-by: zhouchencheng <[email protected]>
  • Loading branch information
zcc35357949 committed Jul 17, 2020
1 parent f33568a commit ce65c0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dfget/core/downloader/p2p_downloader/client_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ce65c0c

Please sign in to comment.