Replace a Few IntFlags with Uint64Flags (#9959)

* use uints instead of ints

* fix method

* fix

* fix

* builds

* deepsource

* deep source
This commit is contained in:
Raul Jordan
2021-12-01 18:34:53 -05:00
committed by GitHub
parent ab60b1c7b2
commit 790bf03123
25 changed files with 57 additions and 58 deletions

View File

@@ -150,7 +150,7 @@ var (
Value: "",
}
// P2PMaxPeers defines a flag to specify the max number of peers in libp2p.
P2PMaxPeers = &cli.IntFlag{
P2PMaxPeers = &cli.Uint64Flag{
Name: "p2p-max-peers",
Usage: "The max number of p2p peers to maintain.",
Value: 45,