Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

chore: remove unnecessary Retrier interface #128

Merged
merged 2 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Orchestrator struct {
TmQuerier rpc.TmQuerierI
P2PQuerier *p2p.Querier
Broadcaster BroadcasterI
Retrier RetrierI
Retrier *Retrier
}

func New(
Expand All @@ -56,7 +56,7 @@ func New(
tmQuerier rpc.TmQuerierI,
p2pQuerier *p2p.Querier,
broadcaster BroadcasterI,
retrier RetrierI,
retrier *Retrier,
signer *blobtypes.KeyringSigner,
evmPrivateKey ecdsa.PrivateKey,
) (*Orchestrator, error) {
Expand Down
9 changes: 1 addition & 8 deletions orchestrator/retrier.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ import (
tmlog "github.com/tendermint/tendermint/libs/log"
)

var _ RetrierI = &Retrier{}

// RetrierI handles orchestrator retries of failed nonces.
type RetrierI interface {
Retry(ctx context.Context, nonce uint64, retryMethod func(context.Context, uint64) error) error
RetryThenFail(ctx context.Context, nonce uint64, retryMethod func(context.Context, uint64) error)
}

// Retrier handles orchestrator retries of failed nonces.
type Retrier struct {
logger tmlog.Logger
retriesNumber int
Expand Down