Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: backport https://github.com/skip-mev/connect/pull/757 #855

Merged
merged 10 commits into from
Dec 12, 2024
1 change: 0 additions & 1 deletion cmd/slinky/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"net/http"

//nolint: gosec
_ "net/http/pprof"
"os"
Expand Down
8 changes: 4 additions & 4 deletions providers/factories/oracle/marketmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@
return nil, err
}

switch name := cfg.Name; {
case name == dydx.Name:
switch cfg.Name {
case dydx.Name:
apiDataHandler, err = dydx.NewAPIHandler(logger, cfg.API)
ids = []types.Chain{{ChainID: dydx.ChainID}}
case name == dydx.SwitchOverAPIHandlerName:
case dydx.SwitchOverAPIHandlerName:

Check warning on line 56 in providers/factories/oracle/marketmap.go

View check run for this annotation

Codecov / codecov/patch

providers/factories/oracle/marketmap.go#L56

Added line #L56 was not covered by tests
marketMapFetcher, err = dydx.NewDefaultSwitchOverMarketMapFetcher(
logger,
cfg.API,
requestHandler,
apiMetrics,
)
ids = []types.Chain{{ChainID: dydx.ChainID}}
case name == dydx.ResearchAPIHandlerName || name == dydx.ResearchCMCAPIHandlerName:
case dydx.ResearchAPIHandlerName, dydx.ResearchCMCAPIHandlerName:

Check warning on line 64 in providers/factories/oracle/marketmap.go

View check run for this annotation

Codecov / codecov/patch

providers/factories/oracle/marketmap.go#L64

Added line #L64 was not covered by tests
marketMapFetcher, err = dydx.DefaultDYDXResearchMarketMapFetcher(
requestHandler,
apiMetrics,
Expand Down
Loading