api: remove fasthttp for the time being to allow for lens development
@@ -15,8 +15,6 @@ import (
"github.com/perlin-network/wavelet/log"
"github.com/perlin-network/wavelet/node"
"github.com/pkg/errors"
- "github.com/valyala/fasthttp"
- "github.com/valyala/fasthttp/fasthttpadaptor"
"net/http"
"net/url"
"strconv"
@@ -113,7 +111,7 @@ func (g *Gateway) StartHTTP(n *noise.Node, port int) {
logger := log.Node()
logger.Info().Int("port", port).Msg("Started HTTP API server.")
- if err := fasthttp.ListenAndServe(":"+strconv.Itoa(port), fasthttpadaptor.NewFastHTTPHandler(g.router)); err != nil {
+ if err := http.ListenAndServe(":"+strconv.Itoa(port), g.router); err != nil {
logger.Fatal().Err(err).Msg("Failed to start HTTP server.")
}
}
