mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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) {
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user