Skip to content

Commit

Permalink
chore: update default mtu config (#4890)
Browse files Browse the repository at this point in the history
* chore: update default mtu config

* addressed comments
  • Loading branch information
mihir20 authored Jul 15, 2024
1 parent 784a51c commit d962876
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions enterprise/trackedusers/users_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"fmt"
"time"

"github.com/rudderlabs/rudder-server/utils/timeutil"

"github.com/rudderlabs/rudder-go-kit/stats"

"github.com/rudderlabs/rudder-server/jobsdb"
Expand Down Expand Up @@ -62,15 +64,15 @@ func NewUniqueUsersReporter(log logger.Logger, conf *config.Config, stats stats.
return &UniqueUsersReporter{
log: log,
hllSettings: &hll.Settings{
Log2m: conf.GetInt("TrackedUsers.precision", 14),
Log2m: conf.GetInt("TrackedUsers.precision", 16),
Regwidth: conf.GetInt("TrackedUsers.registerWidth", 5),
ExplicitThreshold: hll.AutoExplicitThreshold,
SparseEnabled: true,
},
instanceID: config.GetString("INSTANCE_ID", "1"),
stats: stats,
now: func() time.Time {
return time.Now()
return timeutil.Now()
},
}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion enterprise/trackedusers/users_reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

var (
hllSettings = hll.Settings{Log2m: 14, Regwidth: 5, ExplicitThreshold: hll.AutoExplicitThreshold, SparseEnabled: true}
hllSettings = hll.Settings{Log2m: 16, Regwidth: 5, ExplicitThreshold: hll.AutoExplicitThreshold, SparseEnabled: true}
sampleWorkspaceID = "workspaceID"
sampleWorkspaceID2 = "workspaceID2"
sampleSourceID = "sourceID"
Expand Down

0 comments on commit d962876

Please sign in to comment.