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
F3368939: D13410.id44416.diff
Mon, Nov 25, 9:12 PM
Unknown Object (File)
Fri, Nov 22, 11:38 AM
Unknown Object (File)
Fri, Nov 22, 10:24 AM
Unknown Object (File)
Fri, Nov 22, 6:13 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:36 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
Lint Not Applicable
Unit
Tests Not Applicable

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)