slacknotifier: increase slack notification burst to 3

This commit is contained in:
c9s 2024-03-15 18:24:44 +08:00
parent d3a1a973b6
commit 239f7ea5dd
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -14,7 +14,7 @@ import (
"github.com/slack-go/slack" "github.com/slack-go/slack"
) )
var limiter = rate.NewLimiter(rate.Every(1*time.Second), 1) var limiter = rate.NewLimiter(rate.Every(1*time.Second), 3)
type notifyTask struct { type notifyTask struct {
Channel string Channel string