Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

feat: add peering service config section #96

Merged
merged 2 commits into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type Config struct {
Swarm SwarmConfig
AutoNAT AutoNATConfig
Pubsub PubsubConfig
Peering Peering

Provider Provider
Reprovider Reprovider
Expand Down
9 changes: 9 additions & 0 deletions peering.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package config

import "github.com/libp2p/go-libp2p-core/peer"

// Peering configures the peering service.
type Peering struct {
// Peers lists the nodes to attempt to stay connected with.
Peers []peer.AddrInfo
}