From a88d5611d2dd6dfb49aff0b77b7725d4b62b9937 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 30 Oct 2018 09:51:28 +0900 Subject: server: unexport const No need to export Signed-off-by: FUJITA Tomonori --- pkg/server/mrt.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pkg/server/mrt.go') diff --git a/pkg/server/mrt.go b/pkg/server/mrt.go index c654cb78..ddcb931b 100644 --- a/pkg/server/mrt.go +++ b/pkg/server/mrt.go @@ -30,8 +30,8 @@ import ( ) const ( - MIN_ROTATION_INTERVAL = 60 - MIN_DUMP_INTERVAL = 60 + minRotationInterval = 60 + minDumpInterval = 60 ) type mrtWriter struct { @@ -354,21 +354,21 @@ func (m *mrtManager) enable(c *config.MrtConfig) error { dInterval := c.DumpInterval setRotationMin := func() { - if rInterval < MIN_ROTATION_INTERVAL { + if rInterval < minRotationInterval { log.WithFields(log.Fields{ "Topic": "MRT", - }).Infof("minimum mrt rotation interval is %d seconds", MIN_ROTATION_INTERVAL) - rInterval = MIN_ROTATION_INTERVAL + }).Infof("minimum mrt rotation interval is %d seconds", minRotationInterval) + rInterval = minRotationInterval } } if c.DumpType == config.MRT_TYPE_TABLE { if rInterval == 0 { - if dInterval < MIN_DUMP_INTERVAL { + if dInterval < minDumpInterval { log.WithFields(log.Fields{ "Topic": "MRT", - }).Infof("minimum mrt dump interval is %d seconds", MIN_DUMP_INTERVAL) - dInterval = MIN_DUMP_INTERVAL + }).Infof("minimum mrt dump interval is %d seconds", minDumpInterval) + dInterval = minDumpInterval } } else if dInterval == 0 { setRotationMin() -- cgit v1.2.3