eclipse/lib/leader/cache.go

18 lines
356 B
Go
Raw Permalink Normal View History

2024-01-18 05:49:09 +00:00
// Copyright (C) 2024 Umorpha Systems
// SPDX-License-Identifier: AGPL-3.0-or-later
package leader
2024-01-18 05:49:09 +00:00
import (
"path/filepath"
"git.mothstuff.lol/lukeshu/eclipse/lib/gitcache"
)
func (cfg Config) GitCache() *gitcache.Cache {
return &gitcache.Cache{
Dir: filepath.Join(cfg.CacheDir, "gitcache.git"),
MinPeriod: cfg.GitCacheFor.Duration,
}
}