Skip to content

Commit

Permalink
Add default values
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Oct 31, 2023
1 parent fd3a68f commit 295ee7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/oramnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
// Usage: ./oramnode -oramnodeid=<oramnodeid> -ip=<ip> -rpcport=<rpcport> -replicaid=<replicaid> -raftport=<raftport> -joinaddr=<ip:port> -conf=<configs path> -logpath=<log path>
func main() {
oramNodeID := flag.Int("oramnodeid", 0, "oramnode id, starting consecutively from zero")
ip := flag.String("ip", "", "ip of this replica")
ip := flag.String("ip", "127.0.0.1", "ip of this replica")
replicaID := flag.Int("replicaid", 0, "replica id, starting consecutively from zero")
rpcPort := flag.Int("rpcport", 0, "node rpc port")
raftPort := flag.Int("raftport", 0, "node raft port")
joinAddr := flag.String("joinaddr", "", "the address of the initial raft node, which bootstraped the cluster")
configsPath := flag.String("conf", "", "configs directory path")
configsPath := flag.String("conf", "../../configs", "configs directory path")
logPath := flag.String("logpath", "", "path to write logs")
flag.Parse()
utils.InitLogging(true, *logPath)
Expand Down
4 changes: 2 additions & 2 deletions cmd/router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
func main() {

routerID := flag.Int("routerid", 0, "router id, starting consecutively from zero")
ip := flag.String("ip", "", "ip of this replica")
ip := flag.String("ip", "127.0.0.1", "ip of this replica")
port := flag.Int("port", 0, "node port")
configsPath := flag.String("conf", "", "configs directory path")
configsPath := flag.String("conf", "../../configs", "configs directory path")
logPath := flag.String("logpath", "", "path to write the logs")
flag.Parse()
utils.InitLogging(true, *logPath)
Expand Down
4 changes: 2 additions & 2 deletions cmd/shardnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
// Usage: ./shardnode -shardnodeid=<shardnodeid> -ip=<ip> -rpcport=<rpcport> -replicaid=<replicaid> -raftport=<raftport> -joinaddr=<ip:port> -conf=<configs path> -logpath=<log path>
func main() {
shardNodeID := flag.Int("shardnodeid", 0, "shardnode id, starting consecutively from zero")
ip := flag.String("ip", "", "ip of this replica")
ip := flag.String("ip", "127.0.0.1", "ip of this replica")
replicaID := flag.Int("replicaid", 0, "replica id, starting consecutively from zero")
rpcPort := flag.Int("rpcport", 0, "node rpc port")
raftPort := flag.Int("raftport", 0, "node raft port")
joinAddr := flag.String("joinaddr", "", "the address of the initial raft node, which bootstraped the cluster")
configsPath := flag.String("conf", "", "configs directory path")
configsPath := flag.String("conf", "../../configs", "configs directory path")
logPath := flag.String("logpath", "", "path to write logs")
flag.Parse()

Expand Down

0 comments on commit 295ee7a

Please sign in to comment.