Skip to content

Commit

Permalink
chore: backport #757 (#855)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
  • Loading branch information
aljo242 and technicallyty authored Dec 12, 2024
1 parent dd9a8de commit 8bf0689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
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 @@ func MarketMapProviderFactory(
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:
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:
marketMapFetcher, err = dydx.DefaultDYDXResearchMarketMapFetcher(
requestHandler,
apiMetrics,
Expand Down

0 comments on commit 8bf0689

Please sign in to comment.