Skip to content

Commit

Permalink
go-ipfs-config: Merge pull request ipfs#96 from ipfs/feat/peering-ser…
Browse files Browse the repository at this point in the history
…vice

feat: add peering service config section
  • Loading branch information
Stebalien authored May 26, 2020
2 parents 81af2c2 + 8f4cdbe commit 7498ebf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/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 config/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
}

0 comments on commit 7498ebf

Please sign in to comment.