refresh handler

This commit is contained in:
2026-04-15 14:13:28 -06:00
parent bbaa6396b0
commit 58f9093406
5 changed files with 59 additions and 1 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ type Server struct {
}
func main() {
cfg := NewConfig()
cfg, err := ReadConfig("/home/ewpt3ch/dev/pacman-cache-server/tmprepo/app.config.toml")
if err != nil {
log.Fatal(err)
}
c := cache.NewCache(cfg.MirrorRoot, cfg.MirrorURL)
srv := &Server{cfg: cfg, c: c}