Fix use of ServeFunc
This commit is contained in:
parent
fb6b5eed4b
commit
8c8976d79a
@ -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]{},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user