check if persistence is configured

This commit is contained in:
c9s 2020-12-08 15:09:17 +08:00
parent 53d7fb5611
commit fe7495898f

View File

@ -148,7 +148,10 @@ func runConfig(basectx context.Context, userConfig *bbgo.Config) error {
} }
var options []telegramnotifier.NotifyOption var options []telegramnotifier.NotifyOption
if environ.PersistenceServiceFacade != nil && environ.PersistenceServiceFacade.Redis != nil {
options = append(options, telegramnotifier.WithRedisPersistence(environ.PersistenceServiceFacade.Redis)) 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("send the following command to the bbgo bot you created to enable the notification...")
log.Infof("===========================================") log.Infof("===========================================")