diff --git a/go.mod b/go.mod index d85aa18..3320bf0 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,6 @@ go 1.22.2 require ( github.com/gin-contrib/cache v1.3.0 - github.com/gin-contrib/gzip v1.0.1 github.com/gin-gonic/gin v1.10.0 github.com/regclient/regclient v0.7.0 github.com/spf13/cobra v1.8.1 diff --git a/go.sum b/go.sum index c0a662a..fa52b7a 100644 --- a/go.sum +++ b/go.sum @@ -18,8 +18,6 @@ github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uq github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= github.com/gin-contrib/cache v1.3.0 h1:wEEw38uvb4rTraQJVpd9ex4ZotXNlc0fSaSUsuPXS/w= github.com/gin-contrib/cache v1.3.0/go.mod h1:EA63LrWGI5vwSI95TS5fgBrtxZ1tM2NKx+NrEeyEDcU= -github.com/gin-contrib/gzip v1.0.1 h1:HQ8ENHODeLY7a4g1Au/46Z92bdGFl74OhxcZble9WJE= -github.com/gin-contrib/gzip v1.0.1/go.mod h1:njt428fdUNRvjuJf16tZMYZ2Yl+WQB53X5wmhDwXvC4= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU= diff --git a/pkg/server/server.go b/pkg/server/server.go index 393551d..20b3a93 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -7,7 +7,6 @@ import ( "github.com/gin-contrib/cache" "github.com/gin-contrib/cache/persistence" - "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" ) @@ -29,9 +28,7 @@ func New(bindAddr string, serverImpl ServerImpl, log *slog.Logger) (*Server, err r := gin.New() - store := persistence.NewInMemoryStore(time.Second) - - r.Use(gzip.Gzip(gzip.DefaultCompression)) + store := persistence.NewInMemoryStore(time.Minute * 10) r.Use(injectLoggerMiddleware(log)) r.NoRoute(serverImpl.NoRouteHandler)