mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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)
|
var logger = log.WithField("session", n)
|
||||||
|
|
||||||
if len(session.Subscriptions) == 0 {
|
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 {
|
} else {
|
||||||
// add the subscribe requests to the stream
|
// add the subscribe requests to the stream
|
||||||
for _, s := range session.Subscriptions {
|
for _, s := range session.Subscriptions {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user