Page MenuHomePhabricator

[keyserver] move async iife to standalone function
ClosedPublic

Authored by varun on Oct 10 2024, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 7:48 AM
Unknown Object (File)
Nov 18 2024, 6:55 AM
Unknown Object (File)
Nov 11 2024, 9:51 PM
Unknown Object (File)
Nov 11 2024, 6:17 PM
Unknown Object (File)
Nov 11 2024, 5:32 PM
Unknown Object (File)
Nov 11 2024, 4:35 PM
Unknown Object (File)
Nov 11 2024, 6:22 AM
Unknown Object (File)
Nov 8 2024, 10:51 PM
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
Branch
keyserver-platform-details (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.