one line concurrency change

This commit is contained in:
dtookey 2023-07-31 15:49:04 -04:00
parent 0aedf80727
commit e4d6348fc3
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ func (s *VinegarHttpServlet) ServeHTTP(w http.ResponseWriter, req *http.Request)
for _, route := range s.Routes {
if route.Pattern.MatchString(path) {
//fmt.Printf("SERVING: [%s]=>{%s}\n", path, route.Pattern.String())
route.Handler(w, req)
go route.Handler(w, req)
return
}
}

View File

@ -14,6 +14,7 @@ const (
type (
lru map[string]*LruEntry
Lru struct {
entries *lru
limit int64