Skip to content

Commit

Permalink
Merge pull request ipfs#96 from ipfs/feat/peering-service
Browse files Browse the repository at this point in the history
feat: add peering service config section
  • Loading branch information
Stebalien authored May 26, 2020
2 parents 463d28f + 605b610 commit 98fd4cc
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 98fd4cc

Please sign in to comment.