From 8c8976d79a463372844343cfc1fc66499a8eed1c Mon Sep 17 00:00:00 2001 From: some Date: Thu, 10 Oct 2024 14:38:05 -0400 Subject: [PATCH] Fix use of ServeFunc --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1e059ae..50a9d3e 100644 --- a/server.go +++ b/server.go @@ -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]{}, }