mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
interact: fix misuse of cycle()
This commit is contained in:
parent
1a29bc7362
commit
ee6377ab87
|
@ -239,7 +239,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
||||||
reply.Message("No any strategy supports StrategyStatusProvider")
|
reply.Message("No any strategy supports StrategyStatusProvider")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
}).Next(func(signature string, reply interact.Reply) error {
|
||||||
strategy, ok := it.exchangeStrategies[signature]
|
strategy, ok := it.exchangeStrategies[signature]
|
||||||
if !ok {
|
if !ok {
|
||||||
reply.Message("Strategy not found")
|
reply.Message("Strategy not found")
|
||||||
|
@ -277,7 +277,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
||||||
reply.Message("No any strategy supports StrategyController")
|
reply.Message("No any strategy supports StrategyController")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
}).Next(func(signature string, reply interact.Reply) error {
|
||||||
strategy, ok := it.exchangeStrategies[signature]
|
strategy, ok := it.exchangeStrategies[signature]
|
||||||
if !ok {
|
if !ok {
|
||||||
reply.Message("Strategy not found")
|
reply.Message("Strategy not found")
|
||||||
|
@ -322,7 +322,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
||||||
reply.Message("No any strategy supports StrategyController")
|
reply.Message("No any strategy supports StrategyController")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
}).Next(func(signature string, reply interact.Reply) error {
|
||||||
strategy, ok := it.exchangeStrategies[signature]
|
strategy, ok := it.exchangeStrategies[signature]
|
||||||
if !ok {
|
if !ok {
|
||||||
reply.Message("Strategy not found")
|
reply.Message("Strategy not found")
|
||||||
|
@ -367,7 +367,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
||||||
reply.Message("No any strategy supports EmergencyStopper")
|
reply.Message("No any strategy supports EmergencyStopper")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
}).Next(func(signature string, reply interact.Reply) error {
|
||||||
strategy, ok := it.exchangeStrategies[signature]
|
strategy, ok := it.exchangeStrategies[signature]
|
||||||
if !ok {
|
if !ok {
|
||||||
reply.Message("Strategy not found")
|
reply.Message("Strategy not found")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user