mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
lib/db: Remove reference to env var that never existed
This commit is contained in:
parent
4f7a77597e
commit
883497966e
@ -36,11 +36,6 @@ const (
|
|||||||
var indirectGCInterval = indirectGCDefaultInterval
|
var indirectGCInterval = indirectGCDefaultInterval
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// deprecated
|
|
||||||
if dur, err := time.ParseDuration(os.Getenv("STGCBLOCKSEVERY")); err == nil {
|
|
||||||
indirectGCInterval = dur
|
|
||||||
}
|
|
||||||
// current
|
|
||||||
if dur, err := time.ParseDuration(os.Getenv("STGCINDIRECTEVERY")); err == nil {
|
if dur, err := time.ParseDuration(os.Getenv("STGCINDIRECTEVERY")); err == nil {
|
||||||
indirectGCInterval = dur
|
indirectGCInterval = dur
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user