refactor: update status init func (#241)
This commit is contained in:
parent
55ec234a76
commit
16c3f5c46c
|
@ -52,11 +52,8 @@ func InitAppStatus() error {
|
||||||
case "leveldb":
|
case "leveldb":
|
||||||
StatStorage = leveldb.New(PushConf)
|
StatStorage = leveldb.New(PushConf)
|
||||||
default:
|
default:
|
||||||
err := errors.New("can't find storage driver")
|
LogError.Error("storage error: can't find storage driver")
|
||||||
if err != nil {
|
return errors.New("can't find storage driver")
|
||||||
LogError.Error("storage error: " + err.Error())
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := StatStorage.Init(); err != nil {
|
if err := StatStorage.Init(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue