Skip to content

Commit

Permalink
fix cpu usage problem (zincsearch#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfeiyang authored Feb 21, 2022
1 parent 432afc5 commit d5df8c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/meta/v1/telemetry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package v1

import (
"time"

"gopkg.in/segmentio/analytics-go.v3"
)

Expand All @@ -11,7 +13,7 @@ var (

func init() {
cf := analytics.Config{
Interval: 10,
Interval: 10 * time.Second,
BatchSize: 100,
// Endpoint: "http://localhost:8080/api/v1/segment",
}
Expand Down

0 comments on commit d5df8c2

Please sign in to comment.