Skip to content

Commit

Permalink
remove unused code in middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Apr 14, 2022
1 parent 2c745f6 commit 37c4693
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,20 +372,6 @@ func handleDownload(c *Client, r *Response) (err error) {
closeq(output)
}()

// if r.Request.downloadCallback != nil {
// output = &callbackWriter{
// Writer: output,
// lastTime: time.Now(),
// interval: r.Request.downloadCallbackInterval,
// callback: func(written int64) {
// r.Request.downloadCallback(DownloadInfo{
// Response: r,
// DownloadedSize: written,
// })
// },
// }
// }

_, err = io.Copy(output, body)
r.setReceivedAt()
return
Expand Down

0 comments on commit 37c4693

Please sign in to comment.