Skip to content

Commit d8839fa

Browse files
committed
Rename params that shadowed a built-in
* respolves CRT-A0001 - renames several `max` params to `m` to avoid shadowing
1 parent fcc6d4e commit d8839fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

carbonserver/carbonserver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,14 @@ func (listener *CarbonserverListener) SetDoNotLog404s(doNotLog404s bool) {
520520
func (listener *CarbonserverListener) SetFailOnMaxGlobs(failOnMaxGlobs bool) {
521521
listener.failOnMaxGlobs = failOnMaxGlobs
522522
}
523-
func (listener *CarbonserverListener) SetMaxMetricsGlobbed(max int) {
524-
listener.maxMetricsGlobbed = max
523+
func (listener *CarbonserverListener) SetMaxMetricsGlobbed(m int) {
524+
listener.maxMetricsGlobbed = m
525525
}
526-
func (listener *CarbonserverListener) SetMaxMetricsRendered(max int) {
527-
listener.maxMetricsRendered = max
526+
func (listener *CarbonserverListener) SetMaxMetricsRendered(m int) {
527+
listener.maxMetricsRendered = m
528528
}
529-
func (listener *CarbonserverListener) SetMaxFetchDataGoroutines(max int) {
530-
listener.maxFetchDataGoroutines = max
529+
func (listener *CarbonserverListener) SetMaxFetchDataGoroutines(m int) {
530+
listener.maxFetchDataGoroutines = m
531531
}
532532
func (listener *CarbonserverListener) SetFLock(flock bool) {
533533
listener.flock = flock

0 commit comments

Comments
 (0)