Skip to content

Commit 1144a9f

Browse files
committed
修正 timeout 参数
1 parent a7f2386 commit 1144a9f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

notify/feishu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Feishu conf.Feishu
1717

1818
func (this *Feishu) Send(msg *event.Message) error {
1919
url := this.URL
20-
timeout := 6
20+
timeout := this.Timeout
2121
calcSign := func(secret string, timestamp int64) string {
2222
//timestamp + key 做sha256, 再进行base64 encode
2323
stringToSign := fmt.Sprintf("%v\n%s", timestamp, secret)

supervisor-event-listener.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ server_port = 25
99
[slack]
1010
url = "https://hooks.slack.com/services/xxxx/xxx/xxxx"
1111
channel = "exception"
12+
timeout = 6
1213

1314

1415
[webhook]
1516
url = "http://my.webhook.com"
17+
timeout = 6
1618

1719

1820
[bearychat]

0 commit comments

Comments
 (0)