add send message aggregation
This commit is contained in:
2
main.go
2
main.go
@@ -71,7 +71,7 @@ func tailFile() {
|
|||||||
|
|
||||||
var buffer bytes.Buffer
|
var buffer bytes.Buffer
|
||||||
go func() {
|
go func() {
|
||||||
ticker := time.NewTicker(10 * time.Second)
|
ticker := time.NewTicker(1 * time.Minute)
|
||||||
for {
|
for {
|
||||||
<-ticker.C
|
<-ticker.C
|
||||||
log.Info("will send msg to dingtalk...")
|
log.Info("will send msg to dingtalk...")
|
||||||
|
Reference in New Issue
Block a user