Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
k-yang and coderabbitai[bot] authored Jun 7, 2024
1 parent 3577889 commit 0338abf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func Get() (*Config, error) {
overrideExchangeSymbolsMap := map[string]map[string]string{}
err := json.Unmarshal([]byte(overrideExchangeSymbolsMapJson), &overrideExchangeSymbolsMap)
if err != nil {
return nil, fmt.Errorf("failed to parse EXCHANGE_SYMBOLS_MAP: invalid json")
return nil, fmt.Errorf("failed to parse EXCHANGE_SYMBOLS_MAP: %w", err)
}
for exchange, symbolMap := range overrideExchangeSymbolsMap {
conf.ExchangesToPairToSymbolMap[exchange] = map[asset.Pair]types.Symbol{}
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestConfig_Get(t *testing.T) {
}

func TestConfig_Without_EXCHANGE_SYMBOLS_MAP(t *testing.T) {

os.Unsetenv("EXCHANGE_SYMBOLS_MAP")
os.Setenv("CHAIN_ID", "nibiru-localnet-0")
os.Setenv("GRPC_ENDPOINT", "localhost:9090")
os.Setenv("WEBSOCKET_ENDPOINT", "ws://localhost:26657/websocket")
Expand Down

0 comments on commit 0338abf

Please sign in to comment.