-
-
Notifications
You must be signed in to change notification settings - Fork 852
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
Conversation
req.Header.Set("Content-Type", "application/json; charset=utf-8") | ||
|
||
HTTPClient := &http.Client{} | ||
resp, err := HTTPClient.Do(req) |
There was a problem hiding this comment.
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()
}
There was a problem hiding this comment.
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
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@appleboy do you have any other feedbacks? |
@yacir Thanks. |
Add support for async logs #386