mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
clean up type conversion
This commit is contained in:
parent
f8dbd26736
commit
77eb5da7b7
|
@ -323,12 +323,13 @@ func (e *Exchange) SubscribeMarketData(extraIntervals ...types.Interval) (chan t
|
|||
loadedIntervals[it] = struct{}{}
|
||||
}
|
||||
|
||||
// collect subscriptions
|
||||
for _, sub := range e.marketDataStream.Subscriptions {
|
||||
loadedSymbols[sub.Symbol] = struct{}{}
|
||||
|
||||
switch sub.Channel {
|
||||
case types.KLineChannel:
|
||||
loadedIntervals[types.Interval(sub.Options.Interval)] = struct{}{}
|
||||
loadedIntervals[sub.Options.Interval] = struct{}{}
|
||||
|
||||
default:
|
||||
// Since Environment is not yet been injected at this point, no hard error
|
||||
|
|
Loading…
Reference in New Issue
Block a user