Skip to content

Commit 8b2b8d6

Browse files
authored
chore: minor improvement for docs (#2918)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> minor improvement for docs Signed-off-by: changgesi <changgesi@outlook.com>
1 parent 2bcd6f7 commit 8b2b8d6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ type LogConfig struct {
222222
// P2PConfig contains all peer-to-peer networking configuration parameters
223223
type P2PConfig struct {
224224
ListenAddress string `mapstructure:"listen_address" yaml:"listen_address" comment:"Address to listen for incoming connections (host:port)"`
225-
Peers string `mapstructure:"peers" yaml:"peers" comment:"Comma separated list of peers to connect to"`
226-
BlockedPeers string `mapstructure:"blocked_peers" yaml:"blocked_peers" comment:"Comma separated list of peer IDs to block from connecting"`
227-
AllowedPeers string `mapstructure:"allowed_peers" yaml:"allowed_peers" comment:"Comma separated list of peer IDs to allow connections from"`
225+
Peers string `mapstructure:"peers" yaml:"peers" comment:"Comma-separated list of peers to connect to"`
226+
BlockedPeers string `mapstructure:"blocked_peers" yaml:"blocked_peers" comment:"Comma-separated list of peer IDs to block from connecting"`
227+
AllowedPeers string `mapstructure:"allowed_peers" yaml:"allowed_peers" comment:"Comma-separated list of peer IDs to allow connections from"`
228228
}
229229

230230
// SignerConfig contains all signer configuration parameters

pkg/p2p/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func (c *Client) setupGossiping(ctx context.Context) error {
361361
return nil
362362
}
363363

364-
// parseAddrInfoList parses a comma separated string of multiaddrs into a list of peer.AddrInfo structs
364+
// parseAddrInfoList parses a comma-separated string of multiaddrs into a list of peer.AddrInfo structs
365365
func (c *Client) parseAddrInfoList(addrInfoStr string) []peer.AddrInfo {
366366
if len(addrInfoStr) == 0 {
367367
return []peer.AddrInfo{}

types/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type State struct {
3131
LastHeaderHash Hash
3232

3333
// DAHeight identifies DA block containing the latest applied Evolve block for a syncing node.
34-
// In the case of an aggregator, this corresponds as the last fetched DA block height for forced inclused transactions.
34+
// In the case of an aggregator, this corresponds as the last fetched DA block height for forced included transactions.
3535
DAHeight uint64
3636

3737
// the latest AppHash we've received from calling abci.Commit()

0 commit comments

Comments
 (0)