Skip to content

Commit

Permalink
Change compression level to default, because barely results in any in…
Browse files Browse the repository at this point in the history
…crease in payload size
  • Loading branch information
Mister-Meeseeks committed Mar 19, 2024
1 parent 06bc291 commit 68230fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (s *APIWebServer) Serve(prefix string) {
gin.SetMode(gin.ReleaseMode)
r := gin.Default()
r.Use(CORSMiddleware())
r.Use(gzip.Gzip(gzip.BestCompression))
r.Use(gzip.Gzip(gzip.DefaultCompression))
r.GET("/", func(c *gin.Context) { c.Status(http.StatusOK) })
r.GET(prefix+"/", func(c *gin.Context) { c.Status(http.StatusOK) })
r.GET(prefix+"/user_balance_tokens", s.queryUserTokens)
Expand Down

0 comments on commit 68230fc

Please sign in to comment.