Page MenuHomePhabricator

[keyserver] move async iife to standalone function
ClosedPublic

Authored by varun on Oct 10 2024, 11:31 AM.
Tags
None
Referenced Files
F3302432: D13694.diff
Mon, Nov 18, 6:55 AM
Unknown Object (File)
Mon, Nov 11, 9:51 PM
Unknown Object (File)
Mon, Nov 11, 6:17 PM
Unknown Object (File)
Mon, Nov 11, 5:32 PM
Unknown Object (File)
Mon, Nov 11, 4:35 PM
Unknown Object (File)
Mon, Nov 11, 6:22 AM
Unknown Object (File)
Fri, Nov 8, 10:51 PM
Unknown Object (File)
Thu, Nov 7, 9:04 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Thanks for doing this cleanup! I'm assuming it's a clean refactor, so I didn't review very closely

This revision is now accepted and ready to land.Oct 10 2024, 11:54 AM

use full line length for comments

This revision was landed with ongoing or failed builds.Oct 10 2024, 12:07 PM
This revision was automatically updated to reflect the committed changes.