Fix use of ServeFunc

This commit is contained in:
some 2024-10-10 14:38:05 -04:00
parent fb6b5eed4b
commit 8c8976d79a
Signed by: some
GPG Key ID: 65D0589220B9BFC8

View File

@ -89,7 +89,7 @@ type server[RQB RequestBuilder] struct {
serve [numServeStages][]ServeFunc[RQB]
}
func NewServer[RQB RequestBuilder](serve ServeFunc[RQB]) (srv *server[RQB]) {
func NewServer[RQB RequestBuilder](serve func(req *Request[RQB]) (res *Response, err Error)) (srv *server[RQB]) {
srv = &server[RQB]{
serve: [numServeStages][]ServeFunc[RQB]{},
}