diff --git a/config/config.go b/config/config.go index 1e225d3..4ee9afd 100644 --- a/config/config.go +++ b/config/config.go @@ -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 diff --git a/gorush/log.go b/gorush/log.go index 3000e36..7031b47 100644 --- a/gorush/log.go +++ b/gorush/log.go @@ -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) } } diff --git a/main.go b/main.go index c28d5e7..fae5208 100644 --- a/main.go +++ b/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() }