Skip to content

Commit f04a704

Browse files
committed
fix: benchmarch test
1 parent dc83a77 commit f04a704

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/ws_proxy_benchmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
var (
16-
proxyServer = proxy.NewWSReverseProxy("localhost:8080", "/echo")
16+
proxyServer, _ = proxy.NewWSReverseProxyWith(proxy.WithURL_OptionWS("ws://localhost:8080/echo"))
1717
)
1818

1919
// ProxyHandler ... fasthttp.RequestHandler func

docs/ws-benchmark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import (
7373
)
7474

7575
var (
76-
proxyServer = proxy.NewWSReverseProxy("localhost:8080", "/echo")
76+
proxyServer, _ = proxy.NewWSReverseProxyWith(proxy.WithURL_OptionWS("ws://localhost:8080/echo"))
7777
)
7878

7979
// ProxyHandler ... fasthttp.RequestHandler func

0 commit comments

Comments
 (0)