keys stabilize
This commit is contained in:
1 parent
da446f5ab0
commit
0c1bee31f4
2 files changed
+7
-1
No files matched your search
@@ -376,7 +376,12 @@ async def _pick_pending(limit: int) -> List[Tuple[EncryptedContent, PlainStaging
|
||||
if not staging:
|
||||
peers = (await session.execute(select(KnownNode))).scalars().all()
|
||||
for peer in peers:
|
||||
base_url = f"http://{peer.ip}:{peer.port}"
|
||||
meta = peer.meta or {}
|
||||
public_host = meta.get('public_host')
|
||||
if not public_host:
|
||||
last_resp = (meta.get('last_response') or {}).get('node', {}) if isinstance(meta, dict) else {}
|
||||
public_host = last_resp.get('public_host')
|
||||
base_url = public_host or f"http://{peer.ip}:{peer.port}"
|
||||
dek = await request_key_from_peer(base_url, ec.encrypted_cid)
|
||||
if not dek:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user