Skip to content

Commit

Permalink
remove ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Oct 14, 2024
1 parent 697e05c commit 28d9df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ignite/cmd/bubblemodel/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmdmodel

import (
"bufio"
"context"
"fmt"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -54,13 +53,12 @@ func UpdateDeemon() tea.Cmd {
}

// NewModel initializes the model.
func NewModel(ctx context.Context, chainname string, args chain.MultiNodeArgs) (MultiNode, error) {
func NewModel(chainname string, args chain.MultiNodeArgs) (MultiNode, error) {
numNodes, err := strconv.Atoi(args.NumValidator)
if err != nil {
return MultiNode{}, err
}
return MultiNode{
ctx: ctx,
appd: chainname + "d",
args: args,
nodeStatuses: make([]NodeStatus, numNodes), // initial states of nodes
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func testnetMultiNode(cmd *cobra.Command, session *cliui.Session) error {

time.Sleep(2 * time.Second)

model, err := cmdmodel.NewModel(cmd.Context(), c.Name(), args)
model, err := cmdmodel.NewModel(c.Name(), args)
if err != nil {
return err
}
Expand Down

0 comments on commit 28d9df7

Please sign in to comment.