Skip to content

Commit

Permalink
Merge pull request #99 from SiaFoundation/nate/fix-mem-syncer
Browse files Browse the repository at this point in the history
Fix mem syncer
  • Loading branch information
lukechampine authored Sep 25, 2024
2 parents 7fd91e1 + e084829 commit 9d859c5
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 9d859c5

Please sign in to comment.