Skip to content

Commit

Permalink
fix: key format
Browse files Browse the repository at this point in the history
  • Loading branch information
nipsufn committed Feb 13, 2023
1 parent 7ccd1a1 commit 75028a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func Run(cmd *cobra.Command, args []string) error {
addcmd = exec.Command("kubectl", "--context", ctx, "port-forward", "-n", parts[1], rctype+"/"+targetList[0], "--address", address, portpair)
}

key := fmt.Sprintf("%s:%s:%s:%s", ctx, parts[1], name, portpair)
key := fmt.Sprintf("%s:%s:%s:%s:%s", ctx, parts[1], name, address, portpair)
if _, ok := cs[key]; !ok {
cs[key] = addcmd
}
Expand Down

0 comments on commit 75028a0

Please sign in to comment.