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)
Fri, Nov 15, 5:35 AM
Unknown Object (File)
Sat, Nov 9, 1:51 AM
Unknown Object (File)
Wed, Nov 6, 8:22 PM
Unknown Object (File)
Wed, Oct 23, 5:49 PM
Unknown Object (File)
Wed, Oct 23, 3:11 PM
Unknown Object (File)
Fri, Oct 18, 2:24 AM
Unknown Object (File)
Fri, Oct 18, 2:24 AM
Unknown Object (File)
Fri, Oct 18, 2:24 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