Skip to content

Commit d8e9fa1

Browse files
committed
remove extra context
1 parent f26536b commit d8e9fa1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

block/internal/syncing/syncer.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,7 @@ func (s *Syncer) fetchDAUntilCaughtUp() error {
299299

300300
daHeight := s.GetDAHeight()
301301

302-
// Create a cancellable context for the DA call that inherits the syncer's lifecycle.
303-
// We intentionally avoid adding another timeout layer on top of the per-request timeout
304-
// inside the DA retriever so large blob batches can finish downloading.
305-
ctx, cancel := context.WithCancel(s.ctx)
306-
307-
events, err := s.daRetriever.RetrieveFromDA(ctx, daHeight)
308-
cancel()
302+
events, err := s.daRetriever.RetrieveFromDA(s.ctx, daHeight)
309303
if err != nil {
310304
switch {
311305
case errors.Is(err, coreda.ErrBlobNotFound):

0 commit comments

Comments
 (0)