move constant
parent
5455a31430
commit
db067b6a2d
|
@ -10,10 +10,6 @@ import (
|
|||
"github.com/influxdb/influxdb/client"
|
||||
)
|
||||
|
||||
const (
|
||||
retentionPolicyMinDuration = time.Hour
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrServerOpen is returned when opening an already open server.
|
||||
ErrServerOpen = errors.New("server already open")
|
||||
|
|
|
@ -43,6 +43,9 @@ const (
|
|||
|
||||
// DefaultShardRetention is the length of time before a shard is dropped.
|
||||
DefaultShardRetention = 7 * (24 * time.Hour)
|
||||
|
||||
// Defines the minimum duration allowed for all retention policies
|
||||
retentionPolicyMinDuration = time.Hour
|
||||
)
|
||||
|
||||
// Server represents a collection of metadata and raw metric data.
|
||||
|
|
Loading…
Reference in New Issue