fix: Remove unnecessary type conversions (#176)

This commit is contained in:
Bo-Yi Wu 2017-01-27 18:19:39 +08:00 committed by GitHub
parent 962c033246
commit f155e20fa2
3 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ func LoadConfYaml(confPath string) (ConfYaml, error) {
return config, err
}
err = yaml.Unmarshal([]byte(configFile), &config)
err = yaml.Unmarshal(configFile, &config)
if err != nil {
return config, err

View File

@ -274,9 +274,9 @@ func LogPush(status, token string, req PushNotification, errPush error) {
switch status {
case SucceededPush:
LogAccess.Info(string(output))
LogAccess.Info(output)
case FailedPush:
LogError.Error(string(output))
LogError.Error(output)
}
}

View File

@ -263,6 +263,6 @@ func main() {
gorush.InitAppStatus()
gorush.InitAPNSClient()
gorush.InitWorkers(int64(gorush.PushConf.Core.WorkerNum), int64(gorush.PushConf.Core.QueueNum))
gorush.InitWorkers(gorush.PushConf.Core.WorkerNum, gorush.PushConf.Core.QueueNum)
gorush.RunHTTPServer()
}