diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index 2228393e4..dd6dda50d 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -361,19 +361,23 @@ it makes the local lotus node accessible from the public internet`, Name: "ConnMgrLow", Type: "uint", - Comment: ``, + Comment: `ConnMgrLow is the number of connections that the basic connection manager +will trim down to.`, }, { Name: "ConnMgrHigh", Type: "uint", - Comment: ``, + Comment: `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.`, }, { Name: "ConnMgrGrace", Type: "Duration", - Comment: ``, + Comment: `ConnMgrGrace is a time duration that new connections are immune from being +closed by the connection manager.`, }, }, "MinerAddressConfig": []DocField{ diff --git a/node/config/types.go b/node/config/types.go index 499912d40..97b0812d7 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -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 }