mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
lib/db: Remove reference to env var that never existed
This commit is contained in:
parent
ee61da5b6a
commit
9a1df97c69
@ -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