Skip to content

Commit

Permalink
chore(pgs): ignore error from souin ServeHTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Jan 23, 2025
1 parent 0328a4b commit 9410239
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pgs/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ type CachedHttp struct {
}

func (c *CachedHttp) ServeHTTP(writer http.ResponseWriter, req *http.Request) {
err := c.handler.ServeHTTP(writer, req, func(w http.ResponseWriter, r *http.Request) error {
_ = c.handler.ServeHTTP(writer, req, func(w http.ResponseWriter, r *http.Request) error {
c.routes.ServeHTTP(w, r)
return nil
})
if err != nil {
c.routes.Logger.Error("serve http", "err", err)
}
}

func StartApiServer() {
Expand Down

0 comments on commit 9410239

Please sign in to comment.