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

Commit

Permalink
Merge pull request #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 committed May 26, 2020
2 parents ead2d6d + 7c64c7b commit a5ce8d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.go
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
@@ -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 a5ce8d1

Please sign in to comment.