fix: Remove unnecessary type conversions (#176)
This commit is contained in:
parent
962c033246
commit
f155e20fa2
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue