HomePhabricator
Diffusion Comm abec4fd67a5d

[services] wrap database client in Arc to avoid creating a new client each time…

Description

[services] wrap database client in Arc to avoid creating a new client each time we clone

Summary: According to this discussion, the SDK clients are intended to be reused. We should create one client in main and then wrap it in an Arc, so that we reuse the underlying client struct when we clone.

Test Plan: Confirmed that I could make requests to DDB with the wrapped client

Reviewers: jimpo, karol-bisztyga, palys-swm

Reviewed By: karol-bisztyga, palys-swm

Subscribers: ashoat, Adrian, atul, yayabosh

Differential Revision: https://phab.comm.dev/D4460

Details

Provenance
varunAuthored on Jul 8 2022, 7:14 AM
Reviewer
karol
Differential Revision
D4460: [services] wrap database client in Arc to avoid creating a new client each time we clone
Parents
rCOMM331bc7da607f: [Nix] Add cocoapods for ios build
Branches
Unknown
Tags
Unknown