mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: nolint always return error function (#12701)
This commit is contained in:
@@ -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 {
|
||||
go func() {
|
||||
//nolint:staticcheck
|
||||
err := forwardNodesToWorkspaceProxy(ctx, conn, ma)
|
||||
//nolint:staticcheck
|
||||
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 {
|
||||
var lastData []byte
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user