Skip to content

Commit

Permalink
Rename NewBucket to newBucket
Browse files Browse the repository at this point in the history
bucket is unexported, there is no need to export NewBucket
  • Loading branch information
ccoVeille committed Nov 11, 2024
1 parent 80f0079 commit e73c99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type bucket struct {
lock *sync.Mutex
}

func NewBucket(clock utils.IClock) *bucket {
func newBucket(clock utils.IClock) *bucket {
return &bucket{
probability: 0,
lastUpdatedTimeMillis: uint64(clock.Now().UnixMilli()),
Expand Down Expand Up @@ -62,7 +62,7 @@ func NewStructureWithClock(config *config.FairnessTrackerConfig, id uint64, incl
levels[i] = make([]*bucket, config.M)

for j := 0; j < int(config.M); j++ {
levels[i][j] = NewBucket(clock)
levels[i][j] = newBucket(clock)
}
}

Expand Down

0 comments on commit e73c99f

Please sign in to comment.