Added graceful shutdown

This commit is contained in:
2024-03-12 22:31:45 +01:00
parent b3c73282b3
commit 4b6cb6c34f
8 changed files with 116 additions and 31 deletions

View File

@ -27,7 +27,7 @@ func BenchmarkGitHub(b *testing.B) {
s := server.New()
for _, route := range loadRoutes("testdata/github.txt") {
s.Router().Add(route.Method, route.Path, func(server.Context) error {
s.Router.Add(route.Method, route.Path, func(server.Context) error {
return nil
})
}