Skip to content

Commit

Permalink
chore: implement rpcPeerstoreProvider#GetUnstakedPeerstore()
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jun 5, 2023
1 parent 5bf0a38 commit 9209358
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/providers/peerstore_provider/rpc/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func (rabp *rpcPeerstoreProvider) GetP2PConfig() *configs.P2PConfig {
return rabp.p2pCfg
}

func (rabp *rpcPeerstoreProvider) GetUnstakedPeerstore() (typesP2P.Peerstore, error) {
return nil, fmt.Errorf("unstaked peerstore not supported by rpc peerstore provider")
}

func (rabp *rpcPeerstoreProvider) initRPCClient() {
rpcClient, err := rpc.NewClientWithResponses(rabp.rpcURL)
if err != nil {
Expand Down

0 comments on commit 9209358

Please sign in to comment.