mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +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 (
|
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.
|
// TestNodeOption is a callback passed to StartTestNode which alters its config.
|
||||||
type TestNodeOption func(config *params.NodeConfig)
|
type TestNodeOption func(config *params.NodeConfig)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user