mirror of https://github.com/coder/coder.git
chore: nolint always return error function (#12701)
This commit is contained in:
parent
b4492fffba
commit
bd6ad88077
|
@ -67,6 +67,7 @@ func (s *ClientService) ServeMultiAgentClient(ctx context.Context, version strin
|
||||||
|
|
||||||
func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
|
func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
|
||||||
go func() {
|
go func() {
|
||||||
|
//nolint:staticcheck
|
||||||
err := forwardNodesToWorkspaceProxy(ctx, conn, ma)
|
err := forwardNodesToWorkspaceProxy(ctx, conn, ma)
|
||||||
//nolint:staticcheck
|
//nolint:staticcheck
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -112,6 +113,10 @@ func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Linter fails because this function always returns an error. This function blocks
|
||||||
|
// until it errors, so this is ok.
|
||||||
|
//
|
||||||
|
//nolint:staticcheck
|
||||||
func forwardNodesToWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
|
func forwardNodesToWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
|
||||||
var lastData []byte
|
var lastData []byte
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue