fixed reporter timer

This commit is contained in:
charlestamz
2022-08-09 15:26:18 +08:00
parent 7e1f9b43bd
commit 53c705dd77
2 changed files with 16 additions and 24 deletions

View File

@@ -89,7 +89,7 @@ func Run(ctx context.Context, configFile string) (err error) {
plugin.assign()
}
UUID := uuid.NewString()
reportTimer := time.NewTimer(time.Minute)
reportTimer := time.NewTicker(time.Minute)
contentBuf := bytes.NewBuffer(nil)
req, _ := http.NewRequestWithContext(ctx, http.MethodPost, "https://logs-01.loggly.com/inputs/758a662d-f630-40cb-95ed-2502a5e9c872/tag/monibuca/", nil)
req.Header.Set("Content-Type", "application/json")