Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add async feedback hook option #414

Merged
merged 8 commits into from
Sep 6, 2019

Conversation

yacir
Copy link
Contributor

@yacir yacir commented Jun 3, 2019

Add support for async logs #386

gorush/notification_apns.go Outdated Show resolved Hide resolved
gorush/notification_fcm.go Outdated Show resolved Hide resolved
gorush/feedback.go Outdated Show resolved Hide resolved
gorush/feedback.go Outdated Show resolved Hide resolved
@yacir yacir force-pushed the async_feedback branch from 3694b26 to 2c3af63 Compare June 3, 2019 15:29
req.Header.Set("Content-Type", "application/json; charset=utf-8")

HTTPClient := &http.Client{}
resp, err := HTTPClient.Do(req)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check resp state

	if resp != nil {
		defer resp.Body.Close()
	}

Copy link
Contributor Author

@yacir yacir Jun 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for the feedback. Done in cbb5997

@yacir yacir force-pushed the async_feedback branch from 78a4721 to cedf0e6 Compare July 5, 2019 08:02
@codecov-io
Copy link

codecov-io commented Jul 5, 2019

Codecov Report

Merging #414 into master will decrease coverage by 0.04%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #414      +/-   ##
=========================================
- Coverage   84.15%   84.1%   -0.05%     
=========================================
  Files          18      19       +1     
  Lines        1325    1346      +21     
=========================================
+ Hits         1115    1132      +17     
- Misses        170     172       +2     
- Partials       40      42       +2
Impacted Files Coverage Δ
gorush/notification.go 100% <ø> (ø) ⬆️
gorush/notification_fcm.go 81.73% <0%> (-3.72%) ⬇️
config/config.go 93.97% <100%> (+0.07%) ⬆️
gorush/log.go 93.05% <100%> (+0.04%) ⬆️
gorush/notification_apns.go 85.22% <37.5%> (+1.61%) ⬆️
gorush/feedback.go 86.66% <86.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eab5710...d088020. Read the comment docs.

gorush/feedback_test.go Outdated Show resolved Hide resolved
gorush/notification_apns.go Outdated Show resolved Hide resolved
gorush/notification_fcm.go Outdated Show resolved Hide resolved
@yacir
Copy link
Contributor Author

yacir commented Jul 5, 2019

@appleboy do you have any other feedbacks?

@appleboy appleboy merged commit 3812d35 into appleboy:master Sep 6, 2019
@appleboy
Copy link
Owner

appleboy commented Sep 6, 2019

@yacir Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants