fix shadowed error
This commit is contained in:
parent
730bb45db4
commit
62c9693788
3
main.go
3
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user