mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
check if persistence is configured
This commit is contained in:
parent
53d7fb5611
commit
fe7495898f
|
@ -148,7 +148,10 @@ func runConfig(basectx context.Context, userConfig *bbgo.Config) error {
|
|||
}
|
||||
|
||||
var options []telegramnotifier.NotifyOption
|
||||
|
||||
if environ.PersistenceServiceFacade != nil && environ.PersistenceServiceFacade.Redis != nil {
|
||||
options = append(options, telegramnotifier.WithRedisPersistence(environ.PersistenceServiceFacade.Redis))
|
||||
}
|
||||
|
||||
log.Infof("send the following command to the bbgo bot you created to enable the notification...")
|
||||
log.Infof("===========================================")
|
||||
|
|
Loading…
Reference in New Issue
Block a user