diff --git a/clients/blocksdata/r2_client.go b/clients/blocksdata/r2_client.go index 3a86cbb4..6f585321 100644 --- a/clients/blocksdata/r2_client.go +++ b/clients/blocksdata/r2_client.go @@ -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 {