fix: golangci-lint, non-canonical header "x-acs-dingtalk-access-token" and cancelled is a misspelling of canceled (misspell)

This commit is contained in:
fishtrees 2026-03-13 17:15:16 +08:00
parent 0652258c73
commit fa68f1e12e
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ func (c *DingTalkChannel) sendRobotAPIRequest(
}
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)
if err != nil {

View file

@ -183,7 +183,7 @@ func (c *DingTalkChannel) recoverConnection() {
for {
select {
case <-c.ctx.Done():
logger.InfoC("dingtalk", "Recovery aborted: context cancelled")
logger.InfoC("dingtalk", "Recovery aborted: context canceled")
return
default:
}