mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 16:46:58 +08:00
fixed reporter timer
This commit is contained in:
2
main.go
2
main.go
@@ -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")
|
||||
|
Reference in New Issue
Block a user