Skip to content

Commit

Permalink
cleanup logs in clsync
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmel committed Aug 13, 2024
1 parent 9b66f1d commit e1c790a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions op-node/rollup/clsync/clsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package clsync
import (
"context"
"errors"
"fmt"
"io"
"time"

Expand Down Expand Up @@ -150,17 +151,15 @@ func (eq *CLSync) Proceed(ctx context.Context) error {
func (eq *CLSync) PublishAttributes(ctx context.Context, l2head eth.L2BlockRef) error {
l1Origin, err := eq.l1OriginSelector.FindL1Origin(ctx, l2head)
if err != nil {
eq.log.Error("Error finding next L1 Origin", "err", err)
return err
return fmt.Errorf("error finding next L1 Origin: %w", err)
}

fetchCtx, cancel := context.WithTimeout(ctx, time.Millisecond*500)
defer cancel()

attrs, err := eq.attrBuilder.PreparePayloadAttributes(fetchCtx, l2head, l1Origin.ID())
if err != nil {
eq.log.Error("Error preparing payload attributes", "err", err)
return err
return fmt.Errorf("error preparing payload attributes: %w", err)
}

withParent := &derive.AttributesWithParent{
Expand Down

0 comments on commit e1c790a

Please sign in to comment.