remove cache, it's not useful in practice

This commit is contained in:
Mikaël Cluseau
2025-07-01 22:20:58 +02:00
parent 5c91736202
commit 9ad7715a29
5 changed files with 20 additions and 101 deletions

View File

@ -5,14 +5,11 @@ import (
"log"
"net/http"
"os"
"path/filepath"
restful "github.com/emicklei/go-restful"
swaggerui "github.com/mcluseau/go-swagger-ui"
"m.cluseau.fr/go/watchable/streamsse"
"novit.tech/direktil/pkg/cas"
dlshtml "novit.tech/direktil/local-server/html"
"novit.tech/direktil/local-server/pkg/apiutils"
)
@ -30,8 +27,6 @@ var (
keyFile = flag.String("tls-key", etcDir+"/server.key", "Server TLS key")
autoUnlock = flag.String("auto-unlock", "", "Auto-unlock store (testing only!) env: DLS_AUTO_UNLOCK")
casStore cas.Store
)
func main() {
@ -68,9 +63,6 @@ func main() {
os.Setenv("DLS_AUTO_UNLOCK", "")
}
casStore = cas.NewDir(filepath.Join(*dataDir, "cache"))
go casCleaner()
apiutils.Setup(func() {
registerWS(restful.DefaultContainer)
})