Skip to content

Commit

Permalink
reduce segment batching
Browse files Browse the repository at this point in the history
batches aren't processed when coming from GCR...
  • Loading branch information
joostvdg committed Mar 14, 2021
1 parent 8c3ec87 commit ae4669c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ func StartWebserver() {
var segmentClient analytics.Client
if segmentOk {
segmentClient, _ = analytics.NewWithConfig(segmentKey, analytics.Config{
Interval: 30 * time.Second,
BatchSize: 50,
Interval: 5 * time.Second,
BatchSize: 10,
Verbose: true,

})
defer segmentClient.Close()
}
Expand Down

0 comments on commit ae4669c

Please sign in to comment.