internal/server/model.Handler.Route is no longer a pointer

Also Spawn() now checks if entrypoint is not set

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrillo
2019-10-10 18:10:10 +02:00
parent 25d34bda0a
commit 2129c4a1f6
3 changed files with 42 additions and 26 deletions
+2 -3
View File
@@ -13,9 +13,8 @@ type Handler struct {
// ID is unique identifier of the request.
ID string
// Route is a reference to the original route that matched this
// request.
Route *Route
// Route is the original route that matched this request.
Route
// Writing is a mutex that prevents two goroutines from writing at
// the same time in the response.