Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
0oM4R committed Sep 19, 2023
1 parent c460572 commit 7e0ae5d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions v2go2tgrid/grid_cli/rmb.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func rmbDecorator(action func(c *cli.Context, client *direct.DirectClient) (inte
}
}

// (mnemonics string, substrate_url string, relay_url string, dst uint32, contractID uint64) error
func deploymentChanges(c *cli.Context, client *direct.DirectClient) (interface{}, error) {
dst := uint32(c.Uint("dst"))
contractID := c.Uint64("contract_id")
Expand Down Expand Up @@ -133,35 +132,6 @@ func nodeTakenPorts(c *cli.Context, client *direct.DirectClient) (interface{}, e
return string(json), nil
}

// func nodeTakenPorts(mnemonics string, substrate_url string, relay_url string, dst uint32) error {
// subManager := substrate.NewManager(substrate_url)
// sub, err := subManager.Substrate()
// if err != nil {
// return fmt.Errorf("failed to connect to substrate: %w", err)
// }
// defer sub.Close()
// client, err := direct.NewClient(context.Background(), direct.KeyTypeSr25519, mnemonics, relay_url, "tfgrid-vclient", sub, true)
// if err != nil {
// return fmt.Errorf("failed to create direct client: %w", err)
// }
// ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
// defer cancel()

// var takenPorts []uint16

// if err := client.Call(ctx, dst, "zos.network.list_wg_ports", nil, &takenPorts); err != nil {
// return fmt.Errorf("failed to get node taken ports %w", err)
// }
// json, err := json.Marshal(takenPorts)
// if err != nil {
// return fmt.Errorf("failed to marshal taken ports %w", err)
// }

// fmt.Println(string(json))

// return nil
// }

func getNodePublicConfig(c *cli.Context, client *direct.DirectClient) (interface{}, error) {
dst := uint32(c.Uint("dst"))
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
Expand Down

0 comments on commit 7e0ae5d

Please sign in to comment.