Page MenuHomePhabricator

[services] Extract multipart handling logic to lib
ClosedPublic

Authored by michal on Aug 21 2023, 10:34 AM.
Tags
None
Referenced Files
F2831481: D8892.id30326.diff
Fri, Sep 27, 11:58 PM
F2831480: D8892.id30316.diff
Fri, Sep 27, 11:58 PM
F2831479: D8892.id30314.diff
Fri, Sep 27, 11:58 PM
F2831478: D8892.id30157.diff
Fri, Sep 27, 11:58 PM
F2831429: D8892.id.diff
Fri, Sep 27, 11:57 PM
F2831390: D8892.diff
Fri, Sep 27, 11:49 PM
Unknown Object (File)
Fri, Sep 20, 7:22 AM
Unknown Object (File)
Sun, Sep 8, 1:13 PM
Subscribers

Details

Summary

A few things related to multipart parsing will be useful to the backup service:

  • general function for handling text fields
  • ByteStream alias (changed to use Byte instead of Vec<u8> to avoid unnecessary allocations)
  • Also removed a few unnecessary map_err(Box::new) and fixed typos

Depends on D8889

Test Plan

yarn run-integration-tests blob

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 22 2023, 12:12 AM

Regenerate backup lockfile because of issues with resolving deps. Also updated lockfile of feature flags from anyhow in lib.