From e4847c498a136d8df62913944eca5bc013c4341a Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:55:17 -0500 Subject: [PATCH] Unexport TranslateFile.ReplicationRetryInterval --- translate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translate.go b/translate.go index 20c886cdf..b75b9767a 100644 --- a/translate.go +++ b/translate.go @@ -73,7 +73,7 @@ type TranslateFile struct { PrimaryTranslateStore TranslateStore // Delay after attempting to connect to a primary that the store will retry. - ReplicationRetryInterval time.Duration + replicationRetryInterval time.Duration } // NewTranslateFile returns a new instance of TranslateFile. @@ -86,7 +86,7 @@ func NewTranslateFile() *TranslateFile { mapSize: defaultMapSize, - ReplicationRetryInterval: defaultReplicationRetryInterval, + replicationRetryInterval: defaultReplicationRetryInterval, } } @@ -270,7 +270,7 @@ func (s *TranslateFile) monitorReplication() { select { case <-s.closing: return - case <-time.After(s.ReplicationRetryInterval): + case <-time.After(s.replicationRetryInterval): log.Printf("pilosa: reconnecting to primary replica") } }