From e08482967ec930d87159a78993ee97edce9e3229 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Tue, 24 Sep 2024 16:40:07 -0700 Subject: [PATCH] testutil: fix mem syncer --- testutil/syncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/syncer.go b/testutil/syncer.go index 2679329..1aba4f6 100644 --- a/testutil/syncer.go +++ b/testutil/syncer.go @@ -53,7 +53,7 @@ func (ps *MemPeerStore) PeerInfo(addr string) (syncer.PeerInfo, error) { func (ps *MemPeerStore) UpdatePeerInfo(addr string, fn func(*syncer.PeerInfo)) error { ps.mu.Lock() defer ps.mu.Unlock() - p := syncer.PeerInfo{} + p := ps.peers[addr] fn(&p) ps.peers[addr] = p return nil