fix initial error count for redis.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-22 18:20:01 +08:00
parent 3be61ad608
commit 6ef663928d
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ func InitAppStatus() {
Password: PushConf.Stat.Redis.Password, Password: PushConf.Stat.Redis.Password,
DB: PushConf.Stat.Redis.DB, DB: PushConf.Stat.Redis.DB,
}) })
RushStatus.TotalCount = getTotalCount()
RushStatus.Ios.PushSuccess = getIosSuccess()
RushStatus.Ios.PushError = getIosError()
RushStatus.Android.PushSuccess = getAndroidSuccess()
RushStatus.Android.PushError = getAndroidError()
default: default:
initApp() initApp()
} }