Skip to content

Commit 1e64246

Browse files
committed
remove unused noded root flag/dir
1 parent 87992e5 commit 1e64246

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cmds/modules/noded/main.go

-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"crypto/ed25519"
66
"fmt"
7-
"os"
87
"time"
98

109
"github.com/cenkalti/backoff"
@@ -55,11 +54,6 @@ var Module cli.Command = cli.Command{
5554
Name: "net",
5655
Usage: "print node network and exit",
5756
},
58-
&cli.StringFlag{
59-
Name: "root",
60-
Usage: "`ROOT` working directory of the module",
61-
Value: "/var/cache/modules/noded",
62-
},
6357
},
6458
Action: action,
6559
}
@@ -89,13 +83,8 @@ func action(cli *cli.Context) error {
8983
msgBrokerCon string = cli.String("broker")
9084
printID bool = cli.Bool("id")
9185
printNet bool = cli.Bool("net")
92-
root string = cli.String("root")
9386
)
9487

95-
if err := os.MkdirAll(root, 0755); err != nil {
96-
return errors.Wrap(err, "fail to create module root")
97-
}
98-
9988
env := environment.MustGet()
10089

10190
redis, err := zbus.NewRedisClient(msgBrokerCon)

0 commit comments

Comments
 (0)