mirror of https://github.com/waku-org/js-waku.git
fix: only override ping metadata in peer store
This commit is contained in:
parent
86249dfe29
commit
73d78aa0ad
|
@ -56,7 +56,7 @@ export class KeepAliveManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await peerStore.patch(peerId, {
|
await peerStore.merge(peerId, {
|
||||||
metadata: {
|
metadata: {
|
||||||
ping: utf8ToBytes(ping.toString())
|
ping: utf8ToBytes(ping.toString())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue