Mountain/RPC/CocoonService/Initialization/InitialHandshake.rs
1
2//! Cocoon → Mountain ready ping. No payload; Mountain replies with the
3//! init-extension-host data via `InitExtensionHost::Fn`.
4
5use tonic::{Response, Status};
6
7use crate::{RPC::CocoonService::CocoonServiceImpl, Vine::Generated::Empty, dev_log};
8
9pub async fn Fn(_Service:&CocoonServiceImpl, _Request:Empty) -> Result<Response<Empty>, Status> {
10 dev_log!("cocoon", "[CocoonService] Initial handshake received from Cocoon");
11
12 Ok(Response::new(Empty {}))
13}