Move to []byte for caching and make it compile

This commit is contained in:
Moritz Marquardt
2024-04-18 19:07:34 +02:00
parent 5b6eecc75f
commit c4181d1206
11 changed files with 63 additions and 43 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package handler
import (
"github.com/OrlovEvgeny/go-mcache"
"net/http"
"strings"
@@ -23,7 +24,7 @@ const (
func Handler(
cfg config.ServerConfig,
giteaClient *gitea.Client,
dnsLookupCache, canonicalDomainCache, redirectsCache cache.ICache,
dnsLookupCache *mcache.CacheDriver, canonicalDomainCache, redirectsCache cache.ICache,
) http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
log.Debug().Msg("\n----------------------------------------------------------")