fix: golangci-lint, non-canonical header "x-acs-dingtalk-access-token" and cancelled is a misspelling of canceled (misspell)
This commit is contained in:
parent
0652258c73
commit
fa68f1e12e
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ func (c *DingTalkChannel) sendRobotAPIRequest(
|
||||||
}
|
}
|
||||||
|
|
||||||
req.Header.Set("Content-Type", "application/json")
|
req.Header.Set("Content-Type", "application/json")
|
||||||
req.Header.Set("x-acs-dingtalk-access-token", accessToken)
|
req.Header.Set("X-Acs-Dingtalk-Access-Token", accessToken)
|
||||||
|
|
||||||
resp, err := c.httpClient.Do(req)
|
resp, err := c.httpClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ func (c *DingTalkChannel) recoverConnection() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-c.ctx.Done():
|
case <-c.ctx.Done():
|
||||||
logger.InfoC("dingtalk", "Recovery aborted: context cancelled")
|
logger.InfoC("dingtalk", "Recovery aborted: context canceled")
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue