Mountain/RPC/CocoonService/Initialization/InitialHandshake.rs
1//! Cocoon → Mountain ready ping. No payload; Mountain replies with the
2//! init-extension-host data via `InitExtensionHost::Fn`.
3
4use tonic::{Response, Status};
5use ::Vine::Generated::Empty;
6
7use crate::{RPC::CocoonService::CocoonServiceImpl, 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}