Skip to content

Commit 3d2730f

Browse files
authored
Replace deprecated nhooyr.io/websocket by maintained github.com/coder/websocket (#3832)
1 parent 1497bac commit 3d2730f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/cenkalti/backoff/v4 v4.3.0
2323
github.com/chzyer/readline v1.5.1
2424
github.com/cli/safeexec v1.0.1
25+
github.com/coder/websocket v1.8.12
2526
github.com/depot/depot-go v0.3.0
2627
github.com/docker/docker v26.1.4+incompatible
2728
github.com/docker/go-connections v0.5.0
@@ -95,7 +96,6 @@ require (
9596
google.golang.org/grpc v1.65.0
9697
gopkg.in/yaml.v2 v2.4.0
9798
gopkg.in/yaml.v3 v3.0.1
98-
nhooyr.io/websocket v1.8.11
9999
)
100100

101101
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBS
182182
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
183183
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE=
184184
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4=
185+
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
186+
github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
185187
github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM=
186188
github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw=
187189
github.com/containerd/console v1.0.4 h1:F2g4+oChYvBTsASRTz8NP6iIAi97J3TtSAsLbIFn4ro=
@@ -879,5 +881,3 @@ gvisor.dev/gvisor v0.0.0-20230927004350-cbd86285d259 h1:TbRPT0HtzFP3Cno1zZo7yPzE
879881
gvisor.dev/gvisor v0.0.0-20230927004350-cbd86285d259/go.mod h1:AVgIgHMwK63XvmAzWG9vLQ41YnVHN0du0tEC46fI7yY=
880882
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
881883
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
882-
nhooyr.io/websocket v1.8.11 h1:f/qXNc2/3DpoSZkHt1DQu6rj4zGC8JmkkLkWss0MgN0=
883-
nhooyr.io/websocket v1.8.11/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=

internal/metrics/synthetics/ws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88
"sync"
99
"time"
1010

11+
"github.com/coder/websocket"
1112
"github.com/superfly/flyctl/internal/buildinfo"
1213
"github.com/superfly/flyctl/internal/config"
1314
"github.com/superfly/flyctl/internal/logger"
1415
metrics "github.com/superfly/flyctl/internal/metrics"
1516
"golang.org/x/time/rate"
16-
"nhooyr.io/websocket"
1717
)
1818

1919
type SyntheticsWs struct {

wg/ws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"sync"
1414
"time"
1515

16+
"github.com/coder/websocket"
1617
"golang.org/x/time/rate"
17-
"nhooyr.io/websocket"
1818
)
1919

2020
func ConnectWS(ctx context.Context, state *WireGuardState) (*Tunnel, error) {

0 commit comments

Comments
 (0)