36H3LIVEN7MC5BEQ3VFCNSXCMT7TBDOVEZXRJJKMQDFDBY53STGAC
LAST6KDHOOQQBH2PVJUIXXGELKD7YUU4R7OV2JSUMK7TIMABJUUQC
WLOVZ5OJEFQG57LMUNNIFHX6E7J5OZ6L2HEKY3N7KNNSLWMP2I4AC
2SQFSBLL73SZQFVNRGAJJ6DWJC7PH423NCT3LNDP5BCNFGFQK4CQC
use tonic_health::server::HealthReporter;
use std::time::Duration;
// Add this
}}async fn rfkpos_service_status(mut reporter: HealthReporter) { loop { tokio::time::sleep(Duration::from_secs(1)).await; reporter.set_serving::<BookstoreServer<BookStoreImpl>>().await;
}
async fn rfkpos_service_status(mut reporter: HealthReporter) {
loop {
tokio::time::sleep(Duration::from_secs(1)).await;
reporter.set_serving::<BookstoreServer<BookStoreImpl>>().await;
let (mut health_reporter, health_service) = tonic_health::server::health_reporter(); health_reporter.set_serving::<BookstoreServer<BookStoreImpl>>().await; tokio::spawn(rfkpos_service_status(health_reporter.clone()));
let (mut health_reporter, health_service) = tonic_health::server::health_reporter();
health_reporter.set_serving::<BookstoreServer<BookStoreImpl>>().await;
tokio::spawn(rfkpos_service_status(health_reporter.clone()));
.add_service(health_service)
tonic-health = "0.7.1"