Skip to content

Commit

Permalink
fix: dialSentryAndBuilders
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Feb 27, 2024
1 parent 2d30834 commit bfc662d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions miner/bid_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,7 @@ func (b *bidSimulator) dialSentryAndBuilders() {
b.sentryCli = sentryCli

for _, v := range b.config.Builders {
var builderCli *builderclient.Client

if b.sentryCli != nil {
builderCli = b.sentryCli
} else {
builderCli, err = builderclient.DialOptions(context.Background(), v.URL, rpc.WithHTTPClient(client))
if err != nil {
log.Error("BidSimulator: failed to dial builder", "url", v.URL, "err", err)
continue
}
}

b.builders[v.Address] = builderCli
_ = b.AddBuilder(v.Address, v.URL)
}
}

Expand Down

0 comments on commit bfc662d

Please sign in to comment.