Skip to content

Commit

Permalink
Revert "REVERT ME cleanup [goreleaser]"
Browse files Browse the repository at this point in the history
This reverts commit 41410d0.
  • Loading branch information
trajan0x committed Jun 29, 2024
1 parent 41410d0 commit 65edc1a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ethergo/submitter/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"context"
"errors"
"fmt"
"github.com/brianvoe/gofakeit/v6"
"go.opentelemetry.io/otel/metric"
"math"
"math/big"
"reflect"
Expand Down Expand Up @@ -134,17 +132,6 @@ func (t *txSubmitterImpl) Start(parentCtx context.Context) (err error) {
return fmt.Errorf("could not create otel recorder: %w", err)

Check warning on line 132 in ethergo/submitter/submitter.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/submitter.go#L132

Added line #L132 was not covered by tests
}

yo := t.metrics.Meter("submitter")
r, err := yo.Int64ObservableGauge("num_pending_txes")
if err != nil {
return fmt.Errorf("could not create num pending txes gauge: %w", err)
}

yo.RegisterCallback(func(ctx context.Context, observer metric.Observer) error {
observer.ObserveInt64(r, gofakeit.Int64())
return nil
}, r)

// start reaper process
ctx, cancel := context.WithCancel(parentCtx)
go func() {
Expand Down

0 comments on commit 65edc1a

Please sign in to comment.