Skip to content

Commit 1f75ad7

Browse files
committed
lint + update
1 parent d4d6fc3 commit 1f75ad7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

block/aggregation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ func (m *Manager) lazyAggregationLoop(ctx context.Context, blockTimer *time.Time
6363
case <-lazyTimer.C:
6464
m.logger.Debug("Lazy timer triggered block production")
6565

66-
err := m.produceBlock(ctx, "lazy_timer", lazyTimer, blockTimer)
67-
if err != nil {
66+
if err := m.produceBlock(ctx, "lazy_timer", lazyTimer, blockTimer); err != nil {
6867
return err
6968
}
7069
case <-blockTimer.C:

block/retriever.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (m *Manager) fetchBlobs(ctx context.Context, daHeight uint64) (coreda.Resul
202202
var err error
203203
ctx, cancel := context.WithTimeout(ctx, dAefetcherTimeout)
204204
defer cancel()
205-
//TODO: we should maintain the original error instead of creating a new one as we lose context by creating a new error.
205+
// TODO: we should maintain the original error instead of creating a new one as we lose context by creating a new error.
206206
blobsRes := types.RetrieveWithHelpers(ctx, m.da, m.logger, daHeight)
207207
if blobsRes.Code == coreda.StatusError {
208208
err = fmt.Errorf("failed to retrieve block: %s", blobsRes.Message)

0 commit comments

Comments
 (0)