Skip to content

Commit

Permalink
link peer meta update back to account object (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer authored Nov 19, 2024
1 parent eb5d056 commit 5dd6a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions management/server/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (am *DefaultAccountManager) SyncPeer(ctx context.Context, sync PeerSync, ac

updated := peer.UpdateMetaIfNew(sync.Meta)
if updated {
account.Peers[peer.ID] = peer
log.WithContext(ctx).Tracef("peer %s metadata updated", peer.ID)
err = am.Store.SavePeer(ctx, account.Id, peer)
if err != nil {
Expand Down

0 comments on commit 5dd6a08

Please sign in to comment.