Skip to content

Commit

Permalink
Change back pstoremem to pstoreds
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 31, 2022
1 parent 0c5a99c commit 5abcec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dot/network/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/peerstore"
"github.com/libp2p/go-libp2p/core/protocol"
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoremem"
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds"
ma "github.com/multiformats/go-multiaddr"
)

Expand Down Expand Up @@ -159,7 +159,7 @@ func newHost(ctx context.Context, cfg *Config) (*host, error) {
return nil, err
}

ps, err := pstoremem.NewPeerstore(ctx, ds, pstoremem.WithMaxProtocols(1024))
ps, err := pstoreds.NewPeerstore(ctx, ds, pstoreds.DefaultOpts())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5abcec8

Please sign in to comment.