Skip to content

Commit

Permalink
Use Sprintf instead of sum
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeysil committed Apr 4, 2024
1 parent 6a7c5dd commit f54c3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/blocksdata/r2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ func (c *blocksDataClient) GetBlocksData(bucket int64) (_ *protocol.BlocksData,
return backoff.Permanent(err)
}

jwt, err := security.CreateScannerJWT(c.key, nil)
scannerJwt, err := security.CreateScannerJWT(c.key, nil)
if err != nil {
return backoff.Permanent(err)
}

req.Header.Set("Authorization", "Bearer "+jwt)
req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", scannerJwt))

resp, err := httpclient.Default.Get(dispatcherUrl)
if err != nil {
Expand Down

0 comments on commit f54c3d1

Please sign in to comment.