mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport TranslateFile.ReplicationRetryInterval
This commit is contained in:
parent
7a1d2c6980
commit
e4847c498a
1 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue