add send message aggregation
This commit is contained in:
parent
745ef9ee9b
commit
113d3a14e7
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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user