mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
skip connection if there is no subscription
This commit is contained in:
parent
c3996aee2b
commit
7951c38edc
|
@ -476,7 +476,8 @@ func (environ *Environment) Connect(ctx context.Context) error {
|
|||
var logger = log.WithField("session", n)
|
||||
|
||||
if len(session.Subscriptions) == 0 {
|
||||
logger.Warnf("exchange session %s has no subscriptions", session.Name)
|
||||
logger.Warnf("exchange session %s has no subscriptions, skipping", session.Name)
|
||||
continue
|
||||
} else {
|
||||
// add the subscribe requests to the stream
|
||||
for _, s := range session.Subscriptions {
|
||||
|
|
Loading…
Reference in New Issue
Block a user