Skip to content

Commit

Permalink
testutil: fix mem syncer
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 24, 2024
1 parent 7fd91e1 commit e084829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutil/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e084829

Please sign in to comment.