Skip to content

Commit

Permalink
fix: Remove unnecessary type conversions (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy authored Jan 27, 2017
1 parent 962c033 commit f155e20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gorush/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit f155e20

Please sign in to comment.