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)
Wed, Nov 20, 3:22 AM
Unknown Object (File)
Nov 10 2024, 10:05 PM
Unknown Object (File)
Nov 9 2024, 1:46 PM
Unknown Object (File)
Nov 9 2024, 9:42 AM
Unknown Object (File)
Nov 9 2024, 9:09 AM
Unknown Object (File)
Nov 9 2024, 8:58 AM
Unknown Object (File)
Nov 8 2024, 1:28 PM
Unknown Object (File)
Nov 8 2024, 1:02 PM
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.