Skip to content

Commit faaab06

Browse files
authored
fix(storage): fix request token passing for Copier.Run (#6863)
This fixes infinite retry issues. Will follow up with tests to catch this behaviour. Fixes #6857
1 parent 3abfb8e commit faaab06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/copy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func (c *Copier) Run(ctx context.Context) (attrs *ObjectAttrs, err error) {
127127
return nil, err
128128
}
129129
c.RewriteToken = res.token
130+
req.token = res.token
130131
if c.ProgressFunc != nil {
131132
c.ProgressFunc(uint64(res.written), uint64(res.size))
132133
}

0 commit comments

Comments
 (0)