cmd/bootnode,internal/debug: fix some comments (#21623)

This commit is contained in:
mr_franklin 2020-09-29 17:31:14 +08:00 committed by GitHub
parent 901471f733
commit 4ee11b072e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ func main() {
natdesc = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)") natdesc = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)")
netrestrict = flag.String("netrestrict", "", "restrict network communication to the given IP networks (CIDR masks)") netrestrict = flag.String("netrestrict", "", "restrict network communication to the given IP networks (CIDR masks)")
runv5 = flag.Bool("v5", false, "run a v5 topic discovery bootnode") runv5 = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
verbosity = flag.Int("verbosity", int(log.LvlInfo), "log verbosity (0-9)") verbosity = flag.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
vmodule = flag.String("vmodule", "", "log verbosity pattern") vmodule = flag.String("vmodule", "", "log verbosity pattern")
nodeKey *ecdsa.PrivateKey nodeKey *ecdsa.PrivateKey

View File

@ -196,7 +196,7 @@ func (*HandlerT) Stacks() string {
return buf.String() return buf.String()
} }
// FreeOSMemory returns unused memory to the OS. // FreeOSMemory forces a garbage collection.
func (*HandlerT) FreeOSMemory() { func (*HandlerT) FreeOSMemory() {
debug.FreeOSMemory() debug.FreeOSMemory()
} }