Page MenuHomePhabricator

[keyserver] Fetch getRustAPI inline with where it's used
ClosedPublic

Authored by ashoat on Mar 3 2023, 2:22 PM.
Tags
None
Referenced Files
F3512485: D6953.diff
Sat, Dec 21, 8:19 PM
Unknown Object (File)
Mon, Dec 16, 7:41 AM
Unknown Object (File)
Wed, Dec 4, 8:13 AM
Unknown Object (File)
Oct 31 2024, 5:01 PM
Unknown Object (File)
Oct 31 2024, 3:53 PM
Unknown Object (File)
Oct 26 2024, 9:10 AM
Unknown Object (File)
Oct 18 2024, 9:58 AM
Unknown Object (File)
Oct 18 2024, 9:58 AM
Subscribers

Details

Summary
  1. Since all of these callsites don't await on the Rust calls, we know we're not blocking execution and it doesn't really matter how early we call getRustAPI... delaying the Rust call for a couple seconds won't affect performance.
  2. In siweAuthResponder, we were missing an await, which could lead to a "unhandled promise rejection" error from Node. D6944 has the same issue; if it's landed before this diff with that unaddressed, I'll update this diff to also address that.
Test Plan

I only tested this by running Flow... I feel fairly confident about the changes, but it would be good if we could test the whole identity service / keyserver flow end-to-end after this and the other outstanding diffs are landed

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/identity
Lint
No Lint Coverage
Unit
No Test Coverage