HomePhabricator
Diffusion Comm 758d5a4d6450

[services-lib][blob-client] Use Bytes instead of Vec<u8>

Description

[services-lib][blob-client] Use Bytes instead of Vec<u8>

Summary:
Partially overlaps with D8964 - we should use Bytes instead of Vec<u8> for blob data to avoid unnecessary allocations.

Also added the bytes dependency to services-lib and re-exported it.

Depends on D8786

Test Plan: Tested together with the next diff

Reviewers: michal, jon

Reviewed By: michal

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Aug 26 2023, 11:51 AM
Reviewer
michal
Differential Revision
D8974: [services-lib][blob-client] Use Bytes instead of Vec<u8>
Parents
rCOMM6b8fce7f0f21: [keyserver/lib/web/native] Modify fetchRelatedMessages to fetch toggle_pin…
Branches
Unknown
Tags
Unknown