The router setup is not race safe
hus787 opened this issue · comments
Hussain Parsaiyan commented
Concurrently configuring the router causes data race
e.g.
go router.Get("/foo", foo)
go router.Post("/bar", bar)
causes data-race.
Read by: web/router_setup.go:239
Previous write by main goroutine: web/router_setup.go:122