Page MenuHomePhabricator

[lib] Let blob holder generator take deviceID as argument
ClosedPublic

Authored by bartek on Sep 20 2024, 6:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 10:36 AM
Unknown Object (File)
Wed, Nov 20, 10:36 AM
Unknown Object (File)
Wed, Nov 20, 10:36 AM
Unknown Object (File)
Wed, Nov 20, 10:36 AM
Unknown Object (File)
Wed, Nov 20, 10:35 AM
Unknown Object (File)
Wed, Nov 13, 11:29 PM
Unknown Object (File)
Wed, Nov 13, 11:25 PM
Unknown Object (File)
Fri, Nov 1, 5:37 AM
Subscribers

Details

Summary

This will be handy in the next diff to avoid calling await getSigningPublicKey() for each holder. Made the function sync again

Test Plan

Repeated plan from D13401

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Sep 20 2024, 6:51 AM
bartek added inline comments.
lib/utils/blob-service.js
70–71 ↗(On Diff #44379)

Flow complained otherwise

Accepting but wondering, looking at the next diff, can't we just pass deviceID as a param to generateBlobHolder (it could be retrieved from getAuthMetadata)? Seems cleaner to me but not feeling strongly.

Separately, this reminds me of ENG-8192.

This revision is now accepted and ready to land.Sep 20 2024, 8:25 AM

Updated function to take deviceID as argument

bartek retitled this revision from [lib] Make blob holder generator a higher order function to [lib] Let blob holder generator take deviceID as argument.Sep 23 2024, 5:04 AM
bartek edited the summary of this revision. (Show Details)