load or store for account

This commit is contained in:
crn4
2025-10-29 23:35:16 +01:00
parent 60e3bf4084
commit 479c75f827
3 changed files with 20 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ func (am *DefaultAccountManager) getPeerNetworkMapExp(
customZone nbdns.CustomZone,
metrics *telemetry.AccountManagerMetrics,
) *types.NetworkMap {
account := am.getAccountFromHolder(accountId)
account := am.getAccountFromHolderOrInit(accountId)
if account == nil {
log.WithContext(ctx).Warnf("account %s not found in holder when getting peer network map", accountId)
return &types.NetworkMap{