Page MenuHomePhabricator

[services] Use comm-lib aws in Tunnelbroker
ClosedPublic

Authored by bartek on Dec 22 2023, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 17, 11:28 PM
Unknown Object (File)
Mon, Sep 9, 8:51 PM
Unknown Object (File)
Sun, Sep 8, 11:19 AM
Unknown Object (File)
Fri, Sep 6, 4:15 PM
Unknown Object (File)
Fri, Sep 6, 1:48 PM
Unknown Object (File)
Thu, Sep 5, 9:27 PM
Unknown Object (File)
Sep 3 2024, 11:03 PM
Unknown Object (File)
Aug 30 2024, 4:13 AM
Subscribers

Details

Summary

Main part of ENG-4292.
Used comm-lib in Tunnelbroker and updated imports.

Depends on D10443

Test Plan

Tunnelbroker compiles.

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.Dec 22 2023, 6:30 AM
bartek added inline comments.
services/tunnelbroker/Cargo.toml
23 ↗(On Diff #34985)

This dep turns out to be unused, see https://phab.comm.dev/D10392#inline-63616

Nice!

services/tunnelbroker/src/database/message.rs
25 ↗(On Diff #34985)

Could we implement something like:

impl From<DBItemError> for MessageErrors {
  fn from(self) -> MessageErrors {
    // possibly also `error!` self so we don't lose the exact error? Not sure 
    MessageErrors::SerializationError
  }
}

and remove the map_err?

This revision is now accepted and ready to land.Jan 2 2024, 2:57 AM
services/tunnelbroker/src/database/message.rs
25 ↗(On Diff #34985)

The purpose of this diff was to only replace DDB raw types with comm-lib counterparts, without further refactors, but this suggestion makes so much sense so I'll do this