diff --git a/bootstrap.sh b/bootstrap.sh index a892669..26bad6c 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,7 +3,6 @@ . ./dev.sh go get -u github.com/siddontang/go-log/log -go get -u github.com/siddontang/go-websocket/websocket go get -u github.com/siddontang/go-snappy/snappy go get -u gopkg.in/mgo.v2/bson go get -u github.com/ugorji/go/codec diff --git a/server/app.go b/server/app.go index 7fbcb65..3c13841 100644 --- a/server/app.go +++ b/server/app.go @@ -134,7 +134,6 @@ func (app *App) httpServe() { mux := http.NewServeMux() - mux.Handle("/ws", &WsHandler{app.Ledis()}) mux.Handle("/", &CmdHandler{app.Ledis()}) svr := http.Server{Handler: mux} diff --git a/server/http/handler.go b/server/http/handler.go index 187f04e..b958054 100644 --- a/server/http/handler.go +++ b/server/http/handler.go @@ -154,11 +154,3 @@ func writeMsgPack(result interface{}, w http.ResponseWriter) { log.Error(err.Error()) } } - -type WsHandler struct { - Ldb *ledis.Ledis -} - -func (h *WsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("ws handler")) -}