mirror of
https://github.com/status-im/status-go.git
synced 2025-01-22 04:31:30 +00:00
Switch to flag.String from flag.StringVar, removing init()
This commit is contained in:
parent
7718bd5990
commit
14c124aef8
@ -17,13 +17,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
networkSelected string
|
||||
networkSelected = flag.String("network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests")
|
||||
)
|
||||
|
||||
func init() {
|
||||
flag.StringVar(&networkSelected, "network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests")
|
||||
}
|
||||
|
||||
// TestNodeOption is a callback passed to StartTestNode which alters its config.
|
||||
type TestNodeOption func(config *params.NodeConfig)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user