Skip to content

Commit d36f61d

Browse files
committed
more linting
1 parent 4f34245 commit d36f61d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cli/ssh.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ import (
1919
gosshagent "golang.org/x/crypto/ssh/agent"
2020
"golang.org/x/term"
2121
"golang.org/x/xerrors"
22+
tslogger "tailscale.com/types/logger"
2223

2324
"github.com/coder/coder/cli/cliflag"
2425
"github.com/coder/coder/cli/cliui"
2526
"github.com/coder/coder/coderd/autobuild/notify"
2627
"github.com/coder/coder/coderd/util/ptr"
2728
"github.com/coder/coder/codersdk"
2829
"github.com/coder/coder/cryptorand"
30+
"github.com/coder/coder/peer/peerwg"
2931
)
3032

3133
var workspacePollInterval = time.Minute
@@ -112,7 +114,7 @@ func ssh() *cobra.Command {
112114
newSSHClient = conn.SSHClient
113115
} else {
114116
// TODO: more granual control of Tailscale logging.
115-
// peerwg.Logf = tslogger.Discard
117+
peerwg.Logf = tslogger.Discard //nolint
116118

117119
// ipv6 := peerwg.UUIDToNetaddr(uuid.New())
118120
// wgn, err := peerwg.New(

cli/wireguardtunnel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ func wireguardPortForward() *cobra.Command {
176176
return cmd
177177
}
178178

179+
//nolint:unused,deadcode
179180
func listenAndPortForwardWireguard(ctx context.Context, cmd *cobra.Command,
180181
wgn *peerwg.Network,
181182
wg *sync.WaitGroup,

0 commit comments

Comments
 (0)