Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yokotaso committed Jun 3, 2020
1 parent 2882dec commit 4ae54be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gorush/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func getLogPushEntry(status, token string, req PushNotification, errPush error,
}
}

func SuccessLogPush(status, token string, req PushNotification) {
func successLogPush(status, token string, req PushNotification) {
LogPush(status, token, req, nil, "")
}

Expand Down
2 changes: 1 addition & 1 deletion gorush/notification_apns.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Retry:
}

if res.Sent() && !isError {
SuccessLogPush(SucceededPush, token, req)
successLogPush(SucceededPush, token, req)
StatStorage.AddIosSuccess(1)
}
// free push slot
Expand Down
4 changes: 2 additions & 2 deletions gorush/notification_fcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Retry:
continue
}

SuccessLogPush(SucceededPush, to, req)
successLogPush(SucceededPush, to, req)
}

// result from Send messages to topics
Expand All @@ -198,7 +198,7 @@ Retry:
LogAccess.Debug("Send Topic Message: ", to)
// Success
if res.MessageID != 0 {
SuccessLogPush(SucceededPush, to, req)
successLogPush(SucceededPush, to, req)
} else {
isError = true
// failure
Expand Down

0 comments on commit 4ae54be

Please sign in to comment.