put info about self in repo too when initializing

This commit is contained in:
2024-07-06 22:37:44 +02:00
parent 0f35c1c4a3
commit 11c1c8bf32

View File

@@ -71,7 +71,8 @@ public class PersistentRemoteHostsService {
}
return null;
});
jObjectManager.put(new PeerDirectory(), Optional.empty());
var dir = jObjectManager.put(new PeerDirectory(), Optional.empty());
jObjectManager.put(new PersistentPeerInfo(_selfUuid, getSelfCertificate()), Optional.of(dir.getName()));
}
jObjectResolver.registerWriteListener(PersistentPeerInfo.class, (m, d, i, v) -> {