Skip to content

Commit

Permalink
fix: Remove duplicate client dial
Browse files Browse the repository at this point in the history
  • Loading branch information
brucexc committed Nov 30, 2023
1 parent 0089f58 commit cf2d69a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/engine/source/ethereum/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ func (s *source) Start(ctx context.Context, tasksChan chan<- []engine.Task, erro
}

func (s *source) initialize(ctx context.Context) (err error) {
if s.ethereumClient, err = ethclient.Dial(s.config.Endpoint); err != nil {
return fmt.Errorf("dial rpc endpoint: %w", err)
}

if s.ethereumClient, err = ethclient.Dial(s.config.Endpoint); err != nil {
return fmt.Errorf("dial ethereum endpoint: %w", err)
}
Expand Down

0 comments on commit cf2d69a

Please sign in to comment.