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