refact: add omitted context structure with function context.WithCancel
gg582 committed
May 8, 2026 at 21:52 UTC
5b91ac7d278357594a08eb6d3dc738d33c7d78b9
1 file changed
+3
cmd/portal-tunnel/agent/dashboard.go
+3
@@ -1097,6 +1097,9 @@ func openDashboardURL(rawURL string) error {
1097
}
1098
1099
var cmd *exec.Cmd
1100
+ ctx, cancel := Context.WithCancel(context.Background())
1101
+ defer cancel()
1102
+
1103
switch runtime.GOOS {
1104
case "windows":
1105
cmd = exec.CommandContext(ctx, "rundll32", "url.dll,FileProtocolHandler", rawURL)