Fix typo in var name

This commit is contained in:
Ivan Danyliuk 2018-04-17 17:20:34 +02:00
parent 0af715b62b
commit 9a0f4c47d3
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF

View File

@ -22,7 +22,7 @@ func main() {
naiveP2PDelay = flag.Duration("naivep2p.delay", 10*time.Millisecond, "Delay for each step")
input = flag.String("i", "network.json", "Input filename for pregenerated data to be used with simulation")
output = flag.String("o", "propagation.json", "Output filename for p2p sending data")
ggethlogLevel = flag.String("loglevel", "crit", "Geth log level for whisper simulator (crti, error, warn, info, debug, trace)")
gethlogLevel = flag.String("loglevel", "crit", "Geth log level for whisper simulator (crti, error, warn, info, debug, trace)")
)
flag.Parse()
@ -42,7 +42,7 @@ func main() {
case "naivep2p":
sim = naivep2p.NewSimulator(data, *naiveP2PN, *naiveP2PDelay)
case "whisperv6":
lvl, err := gethlog.LvlFromString(*ggethlogLevel)
lvl, err := gethlog.LvlFromString(*gethlogLevel)
if err != nil {
lvl = gethlog.LvlCrit
}