Skip to content

Commit

Permalink
add func
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Dec 3, 2024
1 parent 07b0075 commit a4d8f94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webseed/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ func (ws *Client) NewRequest(r RequestSpec, buffers storage.BufferPool, limiter
panic("request out of file bounds")
}
req := &Request{
cancel: cancel,
Result: make(chan RequestResult, 1),
cancel: cancel,
onCancelled: onCancelled,
Result: make(chan RequestResult, 1),
}
go func() {
readers, err := readRequestPartResponses(ctx, requestParts, receivingCounter)
Expand Down

0 comments on commit a4d8f94

Please sign in to comment.