delete unused
This commit is contained in:
@@ -306,11 +306,6 @@ func main() {
|
|||||||
Handler: loggedRouter, // Pass our instance of gorilla/mux in.
|
Handler: loggedRouter, // Pass our instance of gorilla/mux in.
|
||||||
}
|
}
|
||||||
|
|
||||||
// hub := newHub()
|
|
||||||
// go hub.run()
|
|
||||||
// r.HandleFunc("/ws/{topic}/{offset}", func(w http.ResponseWriter, r *http.Request) {
|
|
||||||
// serveWs(w, r)
|
|
||||||
// })
|
|
||||||
router.Path("/ws/{topic}/{partition}").Queries("offset", "{offset}").HandlerFunc(websocketHandler).Name("web-socket")
|
router.Path("/ws/{topic}/{partition}").Queries("offset", "{offset}").HandlerFunc(websocketHandler).Name("web-socket")
|
||||||
|
|
||||||
// Run our server in a goroutine so that it doesn't block.
|
// Run our server in a goroutine so that it doesn't block.
|
||||||
|
|||||||
Reference in New Issue
Block a user