loadedSymbols is not used in the init method

This commit is contained in:
c9s 2020-10-20 11:49:18 +08:00
parent f6c1ed67e6
commit 180bfff558

View File

@ -58,13 +58,7 @@ func (environ *Environment) AddExchange(name string, exchange types.Exchange) (s
} }
func (environ *Environment) Init(ctx context.Context) (err error) { func (environ *Environment) Init(ctx context.Context) (err error) {
for _, session := range environ.sessions { for _, session := range environ.sessions {
loadedSymbols := make(map[string]struct{})
for _, sub := range session.Subscriptions {
loadedSymbols[sub.Symbol] = struct{}{}
}
markets, err := session.Exchange.QueryMarkets(ctx) markets, err := session.Exchange.QueryMarkets(ctx)
if err != nil { if err != nil {
return err return err