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")
|
||||
}
|
||||
return nil
|
||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
||||
}).Next(func(signature string, reply interact.Reply) error {
|
||||
strategy, ok := it.exchangeStrategies[signature]
|
||||
if !ok {
|
||||
reply.Message("Strategy not found")
|
||||
|
@ -277,7 +277,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
|||
reply.Message("No any strategy supports StrategyController")
|
||||
}
|
||||
return nil
|
||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
||||
}).Next(func(signature string, reply interact.Reply) error {
|
||||
strategy, ok := it.exchangeStrategies[signature]
|
||||
if !ok {
|
||||
reply.Message("Strategy not found")
|
||||
|
@ -322,7 +322,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
|||
reply.Message("No any strategy supports StrategyController")
|
||||
}
|
||||
return nil
|
||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
||||
}).Next(func(signature string, reply interact.Reply) error {
|
||||
strategy, ok := it.exchangeStrategies[signature]
|
||||
if !ok {
|
||||
reply.Message("Strategy not found")
|
||||
|
@ -367,7 +367,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
|||
reply.Message("No any strategy supports EmergencyStopper")
|
||||
}
|
||||
return nil
|
||||
}).Cycle(func(signature string, reply interact.Reply) error {
|
||||
}).Next(func(signature string, reply interact.Reply) error {
|
||||
strategy, ok := it.exchangeStrategies[signature]
|
||||
if !ok {
|
||||
reply.Message("Strategy not found")
|
||||
|
|
Loading…
Reference in New Issue
Block a user