From 62c96937882bd145006a0b4a9ab7a751bc6ad364 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Thu, 13 Mar 2025 22:33:04 -0400 Subject: [PATCH] fix shadowed error --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8606715..d82691a 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,8 @@ func cliJoin(ctx context.Context, cmd *cli.Command) error { cl := &httpnode.Client{HTTP: http.Client{Timeout: 5 * time.Second}} var node *chord.Node if peer := cmd.String("c"); peer != "" { - p, err := netip.ParseAddrPort(peer) + var p netip.AddrPort + p, err = netip.ParseAddrPort(peer) if err != nil { return err }