Skip to content

Commit

Permalink
cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Jan 31, 2025
1 parent 5ba230e commit 57cb0d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ func (d *customDialer) writeWARCFromConnection(ctx context.Context, reqPipe, res
close(recordChan)

if readErr != nil {
err.Err = readErr
d.client.ErrChan <- err
d.client.ErrChan <- &Error{
Err: readErr,
Func: "writeWARCFromConnection",
}

for record := range recordChan {
if closeErr := record.Content.Close(); closeErr != nil {
Expand Down

0 comments on commit 57cb0d1

Please sign in to comment.