HomePhabricator
Diffusion Comm 8a98670d7370

[keyserver] move async iife to standalone function

Description

[keyserver] move async iife to standalone function

Summary:
keyserver.js is already massive, and the async iife in the middle makes it harder to follow

Depends on D13667

Test Plan:
cleared the access token from the metadata table and ran keyserver as a secondary node. confirmed that node polled every 5 seconds for identity info.

killed and ran keyserver as primary. access token was added to metadata table.

killed and ran keyserver as secondary again. node was able to fetch access token and did not get stuck in loop

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13694

Details

Provenance
varunAuthored on Thu, Oct 10, 11:22 AM
Reviewer
ashoat
Differential Revision
D13694: [keyserver] move async iife to standalone function
Parents
rCOMM856b61cb9083: [keyserver] sync platform details on keyserver start
Branches
Unknown
Tags
Unknown