From 73d78aa0ad7d9112b23df5098a0e7524b8c93166 Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Thu, 25 Apr 2024 23:31:25 -0700 Subject: [PATCH] fix: only override ping metadata in peer store --- packages/core/src/lib/keep_alive_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/keep_alive_manager.ts b/packages/core/src/lib/keep_alive_manager.ts index 34e4ed7f06..3051a53f5b 100644 --- a/packages/core/src/lib/keep_alive_manager.ts +++ b/packages/core/src/lib/keep_alive_manager.ts @@ -56,7 +56,7 @@ export class KeepAliveManager { } try { - await peerStore.patch(peerId, { + await peerStore.merge(peerId, { metadata: { ping: utf8ToBytes(ping.toString()) }