feat(rpc): implement health check service and error handling

- Added `RpcError` enum for comprehensive error handling in RPC operations.
- Introduced `HealthReporter` and `HealthService` for managing service health statuses.
- Implemented health check and watch functionality in the health service.
- Created integration tests for health check service, covering various scenarios.
- Added unit tests for client options validation and stream functionality.
- Established logging infrastructure for terminal and registry components.
- Implemented logging lifecycle management and conflict resolution in tests.
This commit is contained in:
2026-10-09 15:57:35 +08:00
parent 7f331565c7
commit bbb67a68ab
65 changed files with 3313 additions and 695 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
use futures_util::StreamExt;
use proto::proto::control::TerminalInfo;
use proto::control::TerminalInfo;
use crate::RegistryService;
use crate::rpc::snapshots;
use proto::rpc::stream::watch_stream as snapshots;
#[tokio::test]
async fn subscribers_receive_initial_and_changed_snapshots_then_close() {