Skip to content

Commit 48f88e3

Browse files
yiweichijonastheis
authored andcommitted
fix: blob client beacon node do http request with context (#1228)
* fix: beacon node client request with context * chore: auto version bump [bot]
1 parent 06c07b6 commit 48f88e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rollup/da_syncer/blob_client/beacon_node_client.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ func (c *BeaconNodeClient) GetBlobByVersionedHashAndBlockTime(ctx context.Contex
114114
if err != nil {
115115
return nil, fmt.Errorf("failed to join path, err: %w", err)
116116
}
117-
resp, err := c.client.Get(blobSidecarPath)
117+
req, err := http.NewRequestWithContext(ctx, "GET", blobSidecarPath, nil)
118+
if err != nil {
119+
return nil, fmt.Errorf("failed to create request, err: %w", err)
120+
}
121+
resp, err := c.client.Do(req)
118122
if err != nil {
119123
return nil, fmt.Errorf("cannot do request, err: %w", err)
120124
}

0 commit comments

Comments
 (0)