validator: connect to maps_extended
This commit is contained in:
21
validation/src/grpc/maps_extended.rs
Normal file
21
validation/src/grpc/maps_extended.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
use crate::endpoint;
|
||||
use rust_grpc::maps_extended::*;
|
||||
pub type ServiceClient=rust_grpc::maps_extended::maps_service_client::MapsServiceClient<tonic::transport::channel::Channel>;
|
||||
#[derive(Clone)]
|
||||
pub struct Client{
|
||||
client:ServiceClient,
|
||||
}
|
||||
impl Client{
|
||||
pub fn new(
|
||||
client:ServiceClient,
|
||||
)->Self{
|
||||
Self{client}
|
||||
}
|
||||
// endpoint!(get,MapId,MapResponse);
|
||||
// endpoint!(get_list,MapIdList,MapList);
|
||||
endpoint!(update,MapUpdate,NullResponse);
|
||||
// endpoint!(create,MapCreate,MapId);
|
||||
// endpoint!(delete,MapId,NullResponse);
|
||||
// endpoint!(list,ListRequest,MapList);
|
||||
// endpoint!(increment_load_count,MapId,NullResponse);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
pub mod error;
|
||||
|
||||
pub mod maps_extended;
|
||||
pub mod mapfixes;
|
||||
pub mod operations;
|
||||
pub mod scripts;
|
||||
|
||||
@@ -63,11 +63,13 @@ async fn main()->Result<(),StartupError>{
|
||||
let operations=crate::grpc::operations::Service::new(crate::grpc::operations::ValidatorOperationsServiceClient::new(channel.clone()));
|
||||
let scripts=crate::grpc::scripts::Service::new(crate::grpc::scripts::ValidatorScriptsServiceClient::new(channel.clone()));
|
||||
let script_policy=crate::grpc::script_policy::Service::new(crate::grpc::script_policy::ValidatorScriptPolicyServiceClient::new(channel.clone()));
|
||||
let submissions=crate::grpc::submissions::Service::new(crate::grpc::submissions::ValidatorSubmissionsServiceClient::new(channel));
|
||||
let submissions=crate::grpc::submissions::Service::new(crate::grpc::submissions::ValidatorSubmissionsServiceClient::new(channel.clone()));
|
||||
let maps_extended=crate::grpc::maps_extended::Client::new(crate::grpc::maps_extended::ServiceClient::new(channel));
|
||||
let message_handler=message_handler::MessageHandler{
|
||||
cloud_context,
|
||||
cookie_context,
|
||||
group_id,
|
||||
maps_extended,
|
||||
mapfixes,
|
||||
operations,
|
||||
scripts,
|
||||
|
||||
@@ -31,6 +31,7 @@ pub struct MessageHandler{
|
||||
pub(crate) cloud_context:rbx_asset::cloud::Context,
|
||||
pub(crate) cookie_context:rbx_asset::cookie::Context,
|
||||
pub(crate) group_id:Option<u64>,
|
||||
pub(crate) maps_extended:crate::grpc::maps_extended::Client,
|
||||
pub(crate) mapfixes:crate::grpc::mapfixes::Service,
|
||||
pub(crate) operations:crate::grpc::operations::Service,
|
||||
pub(crate) scripts:crate::grpc::scripts::Service,
|
||||
|
||||
Reference in New Issue
Block a user