Page MenuHomePhabricator

[services][backup] Scaffold gRPC server
ClosedPublic

Authored by bartek on Dec 8 2022, 4:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 3 2024, 4:28 AM
Unknown Object (File)
Apr 3 2024, 4:28 AM
Unknown Object (File)
Apr 3 2024, 4:28 AM
Unknown Object (File)
Apr 3 2024, 4:28 AM
Unknown Object (File)
Apr 3 2024, 4:27 AM
Unknown Object (File)
Apr 3 2024, 4:18 AM
Unknown Object (File)
Mar 27 2024, 11:32 PM
Unknown Object (File)
Mar 5 2024, 3:37 AM
Subscribers

Details

Summary

Created gRPC handlers, added logging and server init code. Some copy-paste from blob service.

Depends on D5842

Test Plan

Service should respond with UNIMPLEMENTED to gRPC calls.

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 8 2022, 4:16 AM

Can you explain what EnvFilters are and why we're using them here?

This revision is now accepted and ready to land.Dec 9 2022, 9:13 AM
  • Rebase
  • Slightly cleaned up mod/use structure
In D5843#174783, @varun wrote:

Can you explain what EnvFilters are and why we're using them here?

I explained them more in-depth in the description of this diff: https://phab.comm.dev/D5729 - the same code is already used in blob service
Basically, it allows you to use the RUST_LOG env var (default, configurable in constants.rs) to select displayed log level: trace/debug/info/warn/error.

Fix typo (blob_service -> backup_service variable name)

This revision was automatically updated to reflect the committed changes.