Skip to content

Commit cb42b80

Browse files
committed
changes
1 parent e655816 commit cb42b80

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

client.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func New(opts ...Option) *Node {
2525
}
2626
}
2727

28-
// Run runs the anvil node
29-
// @TODO: should return available accounts on startup
30-
func (n *Node) Run() error {
28+
// Start starts the anvil node
29+
// @TODO: should return available accounts on startup or store them
30+
func (n *Node) Start() error {
3131
defer n.running.Store(false)
3232

3333
if n.running.Load() {
@@ -36,12 +36,7 @@ func (n *Node) Run() error {
3636

3737
n.running.Store(true)
3838

39-
err := n.cmd.Run()
40-
if err != nil {
41-
return err
42-
}
43-
44-
return n.cmd.Wait()
39+
return n.cmd.Start()
4540
}
4641

4742
// Stop stops the anvil node

client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestClient(t *testing.T) {
2121

2222
defer cli.Stop()
2323

24-
go cli.Run()
24+
go cli.Start()
2525

2626
time.Sleep(1 * time.Second)
2727

0 commit comments

Comments
 (0)