Page MenuHomePhabricator

[services][backup] SendLog 1/4 - create handler module
ClosedPublic

Authored by bartek on Jan 10 2023, 8:33 AM.
Tags
None
Referenced Files
F3502548: D6211.id21106.diff
Fri, Dec 20, 4:24 AM
F3502547: D6211.id21090.diff
Fri, Dec 20, 4:24 AM
F3502546: D6211.id20888.diff
Fri, Dec 20, 4:24 AM
F3502544: D6211.id20752.diff
Fri, Dec 20, 4:24 AM
F3502513: D6211.id.diff
Fri, Dec 20, 4:24 AM
F3502483: D6211.diff
Fri, Dec 20, 4:17 AM
Unknown Object (File)
Wed, Dec 18, 10:54 PM
Unknown Object (File)
Wed, Dec 18, 8:16 PM
Subscribers

Details

Summary

Created module for SendLog endpoint and added its its invocation in the grpc handler.

Depends on D6207

Test Plan

Service builds and starts. This code has no logic yet.

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.Jan 11 2023, 1:30 PM
tomek added inline comments.
services/backup/src/service/mod.rs
122–123 ↗(On Diff #20752)

Do we have to clone database client?

This revision is now accepted and ready to land.Jan 12 2023, 7:05 AM
services/backup/src/service/mod.rs
122–123 ↗(On Diff #20752)

Good catch, a leftover from my previous implementation, where this code was unnecessarily run in a separate task

  • Removed user_id field from logs
  • Removed unnecessary clone