@@ -235,7 +235,6 @@ func (s *DASubmitter) SubmitHeaders(ctx context.Context, headers []*types.Signed
235235 "header" ,
236236 s .client .GetHeaderNamespace (),
237237 []byte (s .config .DA .SubmitOptions ),
238- func () uint64 { return cache .NumPendingHeaders () },
239238 )
240239}
241240
@@ -435,7 +434,6 @@ func (s *DASubmitter) SubmitData(ctx context.Context, unsignedDataList []*types.
435434 "data" ,
436435 s .client .GetDataNamespace (),
437436 []byte (s .config .DA .SubmitOptions ),
438- func () uint64 { return cache .NumPendingData () },
439437 )
440438}
441439
@@ -545,7 +543,6 @@ func submitToDA[T any](
545543 itemType string ,
546544 namespace []byte ,
547545 options []byte ,
548- getTotalPendingFn func () uint64 ,
549546) error {
550547 if len (items ) != len (marshaled ) {
551548 return fmt .Errorf ("items length (%d) does not match marshaled length (%d)" , len (items ), len (marshaled ))
@@ -570,11 +567,6 @@ func submitToDA[T any](
570567 marshaled = batchMarshaled
571568 }
572569
573- // Update pending blobs metric to track total backlog
574- if getTotalPendingFn != nil {
575- s .metrics .DASubmitterPendingBlobs .Set (float64 (getTotalPendingFn ()))
576- }
577-
578570 // Start the retry loop
579571 for rs .Attempt < pol .MaxAttempts {
580572 // Record resend metric for retry attempts (not the first attempt)
@@ -615,20 +607,12 @@ func submitToDA[T any](
615607 s .logger .Info ().Str ("itemType" , itemType ).Uint64 ("count" , res .SubmittedCount ).Msg ("successfully submitted items to DA layer" )
616608 if int (res .SubmittedCount ) == len (items ) {
617609 rs .Next (reasonSuccess , pol )
618- // Update pending blobs metric to reflect total backlog
619- if getTotalPendingFn != nil {
620- s .metrics .DASubmitterPendingBlobs .Set (float64 (getTotalPendingFn ()))
621- }
622610 return nil
623611 }
624612 // partial success: advance window
625613 items = items [res .SubmittedCount :]
626614 marshaled = marshaled [res .SubmittedCount :]
627615 rs .Next (reasonSuccess , pol )
628- // Update pending blobs count to reflect total backlog
629- if getTotalPendingFn != nil {
630- s .metrics .DASubmitterPendingBlobs .Set (float64 (getTotalPendingFn ()))
631- }
632616
633617 case datypes .StatusTooBig :
634618 // Record failure metric
@@ -649,10 +633,6 @@ func submitToDA[T any](
649633 marshaled = marshaled [:half ]
650634 s .logger .Debug ().Int ("newBatchSize" , half ).Msg ("batch too big; halving and retrying" )
651635 rs .Next (reasonTooBig , pol )
652- // Update pending blobs count to reflect total backlog
653- if getTotalPendingFn != nil {
654- s .metrics .DASubmitterPendingBlobs .Set (float64 (getTotalPendingFn ()))
655- }
656636
657637 case datypes .StatusNotIncludedInBlock :
658638 // Record failure metric
0 commit comments