2024-01-18 05:49:09 +00:00
|
|
|
// Copyright (C) 2024 Umorpha Systems
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2024-01-20 17:16:25 +00:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|