Browse Source

添加mysql 配置校验

pull/101/head
lixiaoshuang 4 years ago
parent
commit
2ebe46593c
  1. 2
      common/config.go

2
common/config.go

@ -100,7 +100,7 @@ func checkConfig() error {
return errors.New("TimeoutToFail should not be less than RetryInterval")
}
if Config.Store.Driver == BoltDb {
return errors.New("Database type configuration error ")
return errors.New("Db driver type error ")
}
if Config.Store.Driver == Mysql {
if Config.Store.Host == "" {

Loading…
Cancel
Save