Page MenuHomePhabricator

[keyserver][lib][native] Add connection to keyserverStore
ClosedPublic

Authored by inka on Aug 23 2023, 5:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 3, 11:38 AM
Unknown Object (File)
Thu, Apr 3, 5:08 AM
Unknown Object (File)
Thu, Apr 3, 2:05 AM
Unknown Object (File)
Wed, Apr 2, 7:13 AM
Unknown Object (File)
Mar 1 2025, 3:25 PM
Unknown Object (File)
Mar 1 2025, 3:25 PM
Unknown Object (File)
Mar 1 2025, 3:23 PM
Unknown Object (File)
Mar 1 2025, 3:00 PM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-4460/refactor-connection-field
First step is to add connection field to keyserverStore

Test Plan

ran yarn flow-all

Diff Detail

Repository
rCOMM Comm
Branch
inka/redux3
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Aug 23 2023, 5:39 AM
This revision is now accepted and ready to land.Aug 23 2023, 10:45 PM
keyserver/src/responders/website-responders.js
511 ↗(On Diff #30302)

We should avoid await constructions like this. await keywords should appear at the start of a statement, or at the start of the right-hand side of an assignment. await is a very powerful keyword and we should always aim to make it very clear where it appears, instead of sneaking it into declarations like this.

const connectionPromise = (async () => {
  const actualizedCalendarQuery = await calendarQueryPromise;
  return {
    ...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone),
    actualizedCalendarQuery,
  };
})();