Page MenuHomePhabricator

[services] Use comm-lib aws in Tunnelbroker
ClosedPublic

Authored by bartek on Dec 22 2023, 5:42 AM.
Tags
None
Referenced Files
F3504341: D10444.diff
Fri, Dec 20, 8:38 AM
Unknown Object (File)
Mon, Dec 16, 5:39 PM
Unknown Object (File)
Sat, Dec 14, 11:33 AM
Unknown Object (File)
Thu, Dec 12, 7:04 AM
Unknown Object (File)
Tue, Dec 10, 12:56 PM
Unknown Object (File)
Fri, Nov 22, 9:00 AM
Unknown Object (File)
Nov 18 2024, 1:46 AM
Unknown Object (File)
Nov 15 2024, 5:35 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
No Lint Coverage
Unit
No Test Coverage

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