repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
9410239
parent
0328a4b
author
Eric Bower
date
2025-01-23 11:28:31 -0500 EST
chore(pgs): ignore error from souin ServeHTTP

Reference: https://github.com/darkweak/souin/blob/0e1579f1adc7c94f16852531c1c3658752c2e3d8/plugins/souin/main.go#L69
1 files changed,  +1, -4
M pgs/web.go
+1, -4
 1@@ -33,13 +33,10 @@ type CachedHttp struct {
 2 }
 3 
 4 func (c *CachedHttp) ServeHTTP(writer http.ResponseWriter, req *http.Request) {
 5-	err := c.handler.ServeHTTP(writer, req, func(w http.ResponseWriter, r *http.Request) error {
 6+	_ = c.handler.ServeHTTP(writer, req, func(w http.ResponseWriter, r *http.Request) error {
 7 		c.routes.ServeHTTP(w, r)
 8 		return nil
 9 	})
10-	if err != nil {
11-		c.routes.Logger.Error("serve http", "err", err)
12-	}
13 }
14 
15 func StartApiServer() {