Skip to content

Commit

Permalink
config: Port some docstrings from go-ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Aug 27, 2021
1 parent 17b7dce commit 3708a7a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 7 additions & 3 deletions node/config/doc_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions node/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,15 @@ type Libp2p struct {
// it makes the local lotus node accessible from the public internet
DisableNatPortMap bool

ConnMgrLow uint
ConnMgrHigh uint
// ConnMgrLow is the number of connections that the basic connection manager
// will trim down to.
ConnMgrLow uint
// ConnMgrHigh is the number of connections that, when exceeded, will trigger
// a connection GC operation. Note: protected/recently formed connections don't
// count towards this limit.
ConnMgrHigh uint
// ConnMgrGrace is a time duration that new connections are immune from being
// closed by the connection manager.
ConnMgrGrace Duration
}

Expand Down

0 comments on commit 3708a7a

Please sign in to comment.