-
Notifications
You must be signed in to change notification settings - Fork 10
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: umeng broadcast message #153
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #153 +/- ##
========================================
- Coverage 3.12% 3.11% -0.01%
========================================
Files 184 185 +1
Lines 38335 38418 +83
========================================
Hits 1197 1197
- Misses 37073 37156 +83
Partials 65 65
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@penqee 来 check,没问题的话 approve 然后合了 |
pkg/umeng/broadcast.go
Outdated
|
||
req, err := http.NewRequest("POST", url+"?sign="+sign, bytes.NewBuffer(postBody)) | ||
if err != nil { | ||
return fmt.Errorf("umeng.sendBroadcast : failed to create request: %w", err) |
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.
这里应该用 errno.Errorf 吧. 这里是错误产生的地方, 我们需要调用栈
pkg/umeng/broadcast.go
Outdated
client := &http.Client{} | ||
resp, err := client.Do(req) | ||
if err != nil { | ||
return fmt.Errorf("umeng.sendBroadcast : failed to send request: %w", err) |
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.
同上, 下面的也一样
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.
ok
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.
LGTM
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.
LGTM
自查 PR 结构
PR 标题符合这个格式: <type>(optional scope): <description>
此 PR 标题的描述以用户为导向,足够清晰,其他人可以理解。
我已经对所有 commit 提供了签名(GPG 密钥签名、SSH 密钥签名)
这个 PR 属于强制变更/破坏性更改
这个 PR 的类型是什么?
这个 PR 做了什么 / 我们为什么需要这个 PR?
(可选)这个 PR 解决了哪个/些 issue?
对 Reviewer 预留的一些提醒