Skip to content

Commit 89a38f2

Browse files
committed
fix: remove unnecessary type
1 parent 7d7f485 commit 89a38f2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

coderd/httpapi/httpapi.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@ func WebsocketCloseSprintf(format string, vars ...any) string {
282282
return msg
283283
}
284284

285-
type WebSocketEvent[T any] struct {
286-
}
287-
288285
func OneWayWebSocket[T any](rw http.ResponseWriter, r *http.Request) (
289286
sendEvent func(wsEvent T) error,
290287
closed chan struct{},
@@ -303,7 +300,6 @@ func OneWayWebSocket[T any](rw http.ResponseWriter, r *http.Request) (
303300
Code websocket.StatusCode
304301
Reason string
305302
}
306-
307303
eventC := make(chan T)
308304
socketErrC := make(chan SocketError, 1)
309305
closed = make(chan struct{})

0 commit comments

Comments
 (0)