mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
loadedSymbols is not used in the init method
This commit is contained in:
parent
f6c1ed67e6
commit
180bfff558
|
@ -58,13 +58,7 @@ func (environ *Environment) AddExchange(name string, exchange types.Exchange) (s
|
|||
}
|
||||
|
||||
func (environ *Environment) Init(ctx context.Context) (err error) {
|
||||
|
||||
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)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user