Skip to content

Commit

Permalink
fix(storage): fix request token passing for Copier.Run (#6863)
Browse files Browse the repository at this point in the history
This fixes infinite retry issues.

Will follow up with tests to catch this behaviour.

Fixes #6857
  • Loading branch information
BrennaEpp committed Oct 14, 2022
1 parent 3abfb8e commit faaab06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/copy.go
Expand Up @@ -127,6 +127,7 @@ func (c *Copier) Run(ctx context.Context) (attrs *ObjectAttrs, err error) {
return nil, err
}
c.RewriteToken = res.token
req.token = res.token
if c.ProgressFunc != nil {
c.ProgressFunc(uint64(res.written), uint64(res.size))
}
Expand Down

0 comments on commit faaab06

Please sign in to comment.