Page MenuHomePhabricator

[services] Use comm-lib aws in Tunnelbroker
ClosedPublic

Authored by bartek on Dec 22 2023, 5:42 AM.
Tags
None
Referenced Files
F3584642: D10444.diff
Sun, Dec 29, 5:20 PM
Unknown Object (File)
Sun, Dec 22, 9:40 PM
Unknown Object (File)
Fri, Dec 20, 12:54 PM
Unknown Object (File)
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
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