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 committed May 26, 2020
2 parents 435b942 + 75bde89 commit a346451
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 a346451

Please sign in to comment.