fix(storage): fix request token passing for Copier.Run
This fixes infinite retry issues.
Will follow up with tests to catch this behaviour.
Fixes
@@ -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))
}
