Skip to content

Commit 5abcec8

Browse files
committed
Change back pstoremem to pstoreds
1 parent 0c5a99c commit 5abcec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dot/network/host.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/libp2p/go-libp2p/core/peer"
2525
"github.com/libp2p/go-libp2p/core/peerstore"
2626
"github.com/libp2p/go-libp2p/core/protocol"
27-
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoremem"
27+
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds"
2828
ma "github.com/multiformats/go-multiaddr"
2929
)
3030

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

162-
ps, err := pstoremem.NewPeerstore(ctx, ds, pstoremem.WithMaxProtocols(1024))
162+
ps, err := pstoreds.NewPeerstore(ctx, ds, pstoreds.DefaultOpts())
163163
if err != nil {
164164
return nil, err
165165
}

0 commit comments

Comments
 (0)