mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2026-08-21 15:23:28 +08:00
Update AddrManagerDatastore to require a Batching Datastore
This commit is contained in:
@@ -204,7 +204,7 @@ func NewPeerstore() Peerstore {
|
||||
|
||||
// NewPeerstoreDatastore creates a threadsafe collection of peers backed by a
|
||||
// Datastore to prevent excess memory pressure.
|
||||
func NewPeerstoreDatastore(ctx context.Context, ds datastore.Datastore) Peerstore {
|
||||
func NewPeerstoreDatastore(ctx context.Context, ds datastore.Batching) Peerstore {
|
||||
return &peerstore{
|
||||
keybook: newKeybook(),
|
||||
metrics: NewMetrics(),
|
||||
|
||||
Reference in New Issue
Block a user