Autogenerated update for 6210d5dac9...e7913b7950
This commit is contained in:
@@ -269,7 +269,7 @@ pub mod validator_mapfix_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
pub async fn set_status_failed(
|
pub async fn set_status_not_validated(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: impl tonic::IntoRequest<super::MapfixId>,
|
request: impl tonic::IntoRequest<super::MapfixId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
@@ -283,14 +283,14 @@ pub mod validator_mapfix_service_client {
|
|||||||
})?;
|
})?;
|
||||||
let codec = tonic_prost::ProstCodec::default();
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
let path = http::uri::PathAndQuery::from_static(
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
"/validator.ValidatorMapfixService/SetStatusFailed",
|
"/validator.ValidatorMapfixService/SetStatusNotValidated",
|
||||||
);
|
);
|
||||||
let mut req = request.into_request();
|
let mut req = request.into_request();
|
||||||
req.extensions_mut()
|
req.extensions_mut()
|
||||||
.insert(
|
.insert(
|
||||||
GrpcMethod::new(
|
GrpcMethod::new(
|
||||||
"validator.ValidatorMapfixService",
|
"validator.ValidatorMapfixService",
|
||||||
"SetStatusFailed",
|
"SetStatusNotValidated",
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
@@ -321,6 +321,32 @@ pub mod validator_mapfix_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
|
pub async fn set_status_not_uploaded(
|
||||||
|
&mut self,
|
||||||
|
request: impl tonic::IntoRequest<super::MapfixId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
|
self.inner
|
||||||
|
.ready()
|
||||||
|
.await
|
||||||
|
.map_err(|e| {
|
||||||
|
tonic::Status::unknown(
|
||||||
|
format!("Service was not ready: {}", e.into()),
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
|
"/validator.ValidatorMapfixService/SetStatusNotUploaded",
|
||||||
|
);
|
||||||
|
let mut req = request.into_request();
|
||||||
|
req.extensions_mut()
|
||||||
|
.insert(
|
||||||
|
GrpcMethod::new(
|
||||||
|
"validator.ValidatorMapfixService",
|
||||||
|
"SetStatusNotUploaded",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
self.inner.unary(req, path, codec).await
|
||||||
|
}
|
||||||
pub async fn set_status_released(
|
pub async fn set_status_released(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: impl tonic::IntoRequest<super::MapfixReleaseRequest>,
|
request: impl tonic::IntoRequest<super::MapfixReleaseRequest>,
|
||||||
@@ -347,6 +373,32 @@ pub mod validator_mapfix_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
|
pub async fn set_status_not_released(
|
||||||
|
&mut self,
|
||||||
|
request: impl tonic::IntoRequest<super::MapfixId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
|
self.inner
|
||||||
|
.ready()
|
||||||
|
.await
|
||||||
|
.map_err(|e| {
|
||||||
|
tonic::Status::unknown(
|
||||||
|
format!("Service was not ready: {}", e.into()),
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
|
"/validator.ValidatorMapfixService/SetStatusNotReleased",
|
||||||
|
);
|
||||||
|
let mut req = request.into_request();
|
||||||
|
req.extensions_mut()
|
||||||
|
.insert(
|
||||||
|
GrpcMethod::new(
|
||||||
|
"validator.ValidatorMapfixService",
|
||||||
|
"SetStatusNotReleased",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
self.inner.unary(req, path, codec).await
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Generated server implementations.
|
/// Generated server implementations.
|
||||||
@@ -390,7 +442,7 @@ pub mod validator_mapfix_service_server {
|
|||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::MapfixId>,
|
request: tonic::Request<super::MapfixId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
async fn set_status_failed(
|
async fn set_status_not_validated(
|
||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::MapfixId>,
|
request: tonic::Request<super::MapfixId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
@@ -398,10 +450,18 @@ pub mod validator_mapfix_service_server {
|
|||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::MapfixId>,
|
request: tonic::Request<super::MapfixId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
|
async fn set_status_not_uploaded(
|
||||||
|
&self,
|
||||||
|
request: tonic::Request<super::MapfixId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
async fn set_status_released(
|
async fn set_status_released(
|
||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::MapfixReleaseRequest>,
|
request: tonic::Request<super::MapfixReleaseRequest>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
|
async fn set_status_not_released(
|
||||||
|
&self,
|
||||||
|
request: tonic::Request<super::MapfixId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ValidatorMapfixServiceServer<T> {
|
pub struct ValidatorMapfixServiceServer<T> {
|
||||||
@@ -822,13 +882,15 @@ pub mod validator_mapfix_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
"/validator.ValidatorMapfixService/SetStatusFailed" => {
|
"/validator.ValidatorMapfixService/SetStatusNotValidated" => {
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct SetStatusFailedSvc<T: ValidatorMapfixService>(pub Arc<T>);
|
struct SetStatusNotValidatedSvc<T: ValidatorMapfixService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
impl<
|
impl<
|
||||||
T: ValidatorMapfixService,
|
T: ValidatorMapfixService,
|
||||||
> tonic::server::UnaryService<super::MapfixId>
|
> tonic::server::UnaryService<super::MapfixId>
|
||||||
for SetStatusFailedSvc<T> {
|
for SetStatusNotValidatedSvc<T> {
|
||||||
type Response = super::NullResponse;
|
type Response = super::NullResponse;
|
||||||
type Future = BoxFuture<
|
type Future = BoxFuture<
|
||||||
tonic::Response<Self::Response>,
|
tonic::Response<Self::Response>,
|
||||||
@@ -840,7 +902,7 @@ pub mod validator_mapfix_service_server {
|
|||||||
) -> Self::Future {
|
) -> Self::Future {
|
||||||
let inner = Arc::clone(&self.0);
|
let inner = Arc::clone(&self.0);
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
<T as ValidatorMapfixService>::set_status_failed(
|
<T as ValidatorMapfixService>::set_status_not_validated(
|
||||||
&inner,
|
&inner,
|
||||||
request,
|
request,
|
||||||
)
|
)
|
||||||
@@ -855,7 +917,7 @@ pub mod validator_mapfix_service_server {
|
|||||||
let max_encoding_message_size = self.max_encoding_message_size;
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
let method = SetStatusFailedSvc(inner);
|
let method = SetStatusNotValidatedSvc(inner);
|
||||||
let codec = tonic_prost::ProstCodec::default();
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
let mut grpc = tonic::server::Grpc::new(codec)
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
.apply_compression_config(
|
.apply_compression_config(
|
||||||
@@ -920,6 +982,57 @@ pub mod validator_mapfix_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
|
"/validator.ValidatorMapfixService/SetStatusNotUploaded" => {
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
|
struct SetStatusNotUploadedSvc<T: ValidatorMapfixService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
|
impl<
|
||||||
|
T: ValidatorMapfixService,
|
||||||
|
> tonic::server::UnaryService<super::MapfixId>
|
||||||
|
for SetStatusNotUploadedSvc<T> {
|
||||||
|
type Response = super::NullResponse;
|
||||||
|
type Future = BoxFuture<
|
||||||
|
tonic::Response<Self::Response>,
|
||||||
|
tonic::Status,
|
||||||
|
>;
|
||||||
|
fn call(
|
||||||
|
&mut self,
|
||||||
|
request: tonic::Request<super::MapfixId>,
|
||||||
|
) -> Self::Future {
|
||||||
|
let inner = Arc::clone(&self.0);
|
||||||
|
let fut = async move {
|
||||||
|
<T as ValidatorMapfixService>::set_status_not_uploaded(
|
||||||
|
&inner,
|
||||||
|
request,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let accept_compression_encodings = self.accept_compression_encodings;
|
||||||
|
let send_compression_encodings = self.send_compression_encodings;
|
||||||
|
let max_decoding_message_size = self.max_decoding_message_size;
|
||||||
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
|
let inner = self.inner.clone();
|
||||||
|
let fut = async move {
|
||||||
|
let method = SetStatusNotUploadedSvc(inner);
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
|
.apply_compression_config(
|
||||||
|
accept_compression_encodings,
|
||||||
|
send_compression_encodings,
|
||||||
|
)
|
||||||
|
.apply_max_message_size_config(
|
||||||
|
max_decoding_message_size,
|
||||||
|
max_encoding_message_size,
|
||||||
|
);
|
||||||
|
let res = grpc.unary(method, req).await;
|
||||||
|
Ok(res)
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
"/validator.ValidatorMapfixService/SetStatusReleased" => {
|
"/validator.ValidatorMapfixService/SetStatusReleased" => {
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct SetStatusReleasedSvc<T: ValidatorMapfixService>(pub Arc<T>);
|
struct SetStatusReleasedSvc<T: ValidatorMapfixService>(pub Arc<T>);
|
||||||
@@ -969,6 +1082,57 @@ pub mod validator_mapfix_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
|
"/validator.ValidatorMapfixService/SetStatusNotReleased" => {
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
|
struct SetStatusNotReleasedSvc<T: ValidatorMapfixService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
|
impl<
|
||||||
|
T: ValidatorMapfixService,
|
||||||
|
> tonic::server::UnaryService<super::MapfixId>
|
||||||
|
for SetStatusNotReleasedSvc<T> {
|
||||||
|
type Response = super::NullResponse;
|
||||||
|
type Future = BoxFuture<
|
||||||
|
tonic::Response<Self::Response>,
|
||||||
|
tonic::Status,
|
||||||
|
>;
|
||||||
|
fn call(
|
||||||
|
&mut self,
|
||||||
|
request: tonic::Request<super::MapfixId>,
|
||||||
|
) -> Self::Future {
|
||||||
|
let inner = Arc::clone(&self.0);
|
||||||
|
let fut = async move {
|
||||||
|
<T as ValidatorMapfixService>::set_status_not_released(
|
||||||
|
&inner,
|
||||||
|
request,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let accept_compression_encodings = self.accept_compression_encodings;
|
||||||
|
let send_compression_encodings = self.send_compression_encodings;
|
||||||
|
let max_decoding_message_size = self.max_decoding_message_size;
|
||||||
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
|
let inner = self.inner.clone();
|
||||||
|
let fut = async move {
|
||||||
|
let method = SetStatusNotReleasedSvc(inner);
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
|
.apply_compression_config(
|
||||||
|
accept_compression_encodings,
|
||||||
|
send_compression_encodings,
|
||||||
|
)
|
||||||
|
.apply_max_message_size_config(
|
||||||
|
max_decoding_message_size,
|
||||||
|
max_encoding_message_size,
|
||||||
|
);
|
||||||
|
let res = grpc.unary(method, req).await;
|
||||||
|
Ok(res)
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
let mut response = http::Response::new(
|
let mut response = http::Response::new(
|
||||||
@@ -1281,7 +1445,7 @@ pub mod validator_submission_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
pub async fn set_status_failed(
|
pub async fn set_status_not_validated(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: impl tonic::IntoRequest<super::SubmissionId>,
|
request: impl tonic::IntoRequest<super::SubmissionId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
@@ -1295,14 +1459,14 @@ pub mod validator_submission_service_client {
|
|||||||
})?;
|
})?;
|
||||||
let codec = tonic_prost::ProstCodec::default();
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
let path = http::uri::PathAndQuery::from_static(
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
"/validator.ValidatorSubmissionService/SetStatusFailed",
|
"/validator.ValidatorSubmissionService/SetStatusNotValidated",
|
||||||
);
|
);
|
||||||
let mut req = request.into_request();
|
let mut req = request.into_request();
|
||||||
req.extensions_mut()
|
req.extensions_mut()
|
||||||
.insert(
|
.insert(
|
||||||
GrpcMethod::new(
|
GrpcMethod::new(
|
||||||
"validator.ValidatorSubmissionService",
|
"validator.ValidatorSubmissionService",
|
||||||
"SetStatusFailed",
|
"SetStatusNotValidated",
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
@@ -1333,6 +1497,32 @@ pub mod validator_submission_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
|
pub async fn set_status_not_uploaded(
|
||||||
|
&mut self,
|
||||||
|
request: impl tonic::IntoRequest<super::SubmissionId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
|
self.inner
|
||||||
|
.ready()
|
||||||
|
.await
|
||||||
|
.map_err(|e| {
|
||||||
|
tonic::Status::unknown(
|
||||||
|
format!("Service was not ready: {}", e.into()),
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
|
"/validator.ValidatorSubmissionService/SetStatusNotUploaded",
|
||||||
|
);
|
||||||
|
let mut req = request.into_request();
|
||||||
|
req.extensions_mut()
|
||||||
|
.insert(
|
||||||
|
GrpcMethod::new(
|
||||||
|
"validator.ValidatorSubmissionService",
|
||||||
|
"SetStatusNotUploaded",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
self.inner.unary(req, path, codec).await
|
||||||
|
}
|
||||||
pub async fn set_status_released(
|
pub async fn set_status_released(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: impl tonic::IntoRequest<super::SubmissionReleaseRequest>,
|
request: impl tonic::IntoRequest<super::SubmissionReleaseRequest>,
|
||||||
@@ -1359,6 +1549,32 @@ pub mod validator_submission_service_client {
|
|||||||
);
|
);
|
||||||
self.inner.unary(req, path, codec).await
|
self.inner.unary(req, path, codec).await
|
||||||
}
|
}
|
||||||
|
pub async fn set_status_not_released(
|
||||||
|
&mut self,
|
||||||
|
request: impl tonic::IntoRequest<super::SubmissionId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
|
||||||
|
self.inner
|
||||||
|
.ready()
|
||||||
|
.await
|
||||||
|
.map_err(|e| {
|
||||||
|
tonic::Status::unknown(
|
||||||
|
format!("Service was not ready: {}", e.into()),
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let path = http::uri::PathAndQuery::from_static(
|
||||||
|
"/validator.ValidatorSubmissionService/SetStatusNotReleased",
|
||||||
|
);
|
||||||
|
let mut req = request.into_request();
|
||||||
|
req.extensions_mut()
|
||||||
|
.insert(
|
||||||
|
GrpcMethod::new(
|
||||||
|
"validator.ValidatorSubmissionService",
|
||||||
|
"SetStatusNotReleased",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
self.inner.unary(req, path, codec).await
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Generated server implementations.
|
/// Generated server implementations.
|
||||||
@@ -1402,7 +1618,7 @@ pub mod validator_submission_service_server {
|
|||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::SubmissionId>,
|
request: tonic::Request<super::SubmissionId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
async fn set_status_failed(
|
async fn set_status_not_validated(
|
||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::SubmissionId>,
|
request: tonic::Request<super::SubmissionId>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
@@ -1410,10 +1626,18 @@ pub mod validator_submission_service_server {
|
|||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::StatusUploadedRequest>,
|
request: tonic::Request<super::StatusUploadedRequest>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
|
async fn set_status_not_uploaded(
|
||||||
|
&self,
|
||||||
|
request: tonic::Request<super::SubmissionId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
async fn set_status_released(
|
async fn set_status_released(
|
||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::SubmissionReleaseRequest>,
|
request: tonic::Request<super::SubmissionReleaseRequest>,
|
||||||
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
|
async fn set_status_not_released(
|
||||||
|
&self,
|
||||||
|
request: tonic::Request<super::SubmissionId>,
|
||||||
|
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ValidatorSubmissionServiceServer<T> {
|
pub struct ValidatorSubmissionServiceServer<T> {
|
||||||
@@ -1844,13 +2068,15 @@ pub mod validator_submission_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
"/validator.ValidatorSubmissionService/SetStatusFailed" => {
|
"/validator.ValidatorSubmissionService/SetStatusNotValidated" => {
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct SetStatusFailedSvc<T: ValidatorSubmissionService>(pub Arc<T>);
|
struct SetStatusNotValidatedSvc<T: ValidatorSubmissionService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
impl<
|
impl<
|
||||||
T: ValidatorSubmissionService,
|
T: ValidatorSubmissionService,
|
||||||
> tonic::server::UnaryService<super::SubmissionId>
|
> tonic::server::UnaryService<super::SubmissionId>
|
||||||
for SetStatusFailedSvc<T> {
|
for SetStatusNotValidatedSvc<T> {
|
||||||
type Response = super::NullResponse;
|
type Response = super::NullResponse;
|
||||||
type Future = BoxFuture<
|
type Future = BoxFuture<
|
||||||
tonic::Response<Self::Response>,
|
tonic::Response<Self::Response>,
|
||||||
@@ -1862,7 +2088,7 @@ pub mod validator_submission_service_server {
|
|||||||
) -> Self::Future {
|
) -> Self::Future {
|
||||||
let inner = Arc::clone(&self.0);
|
let inner = Arc::clone(&self.0);
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
<T as ValidatorSubmissionService>::set_status_failed(
|
<T as ValidatorSubmissionService>::set_status_not_validated(
|
||||||
&inner,
|
&inner,
|
||||||
request,
|
request,
|
||||||
)
|
)
|
||||||
@@ -1877,7 +2103,7 @@ pub mod validator_submission_service_server {
|
|||||||
let max_encoding_message_size = self.max_encoding_message_size;
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
let method = SetStatusFailedSvc(inner);
|
let method = SetStatusNotValidatedSvc(inner);
|
||||||
let codec = tonic_prost::ProstCodec::default();
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
let mut grpc = tonic::server::Grpc::new(codec)
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
.apply_compression_config(
|
.apply_compression_config(
|
||||||
@@ -1944,6 +2170,57 @@ pub mod validator_submission_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
|
"/validator.ValidatorSubmissionService/SetStatusNotUploaded" => {
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
|
struct SetStatusNotUploadedSvc<T: ValidatorSubmissionService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
|
impl<
|
||||||
|
T: ValidatorSubmissionService,
|
||||||
|
> tonic::server::UnaryService<super::SubmissionId>
|
||||||
|
for SetStatusNotUploadedSvc<T> {
|
||||||
|
type Response = super::NullResponse;
|
||||||
|
type Future = BoxFuture<
|
||||||
|
tonic::Response<Self::Response>,
|
||||||
|
tonic::Status,
|
||||||
|
>;
|
||||||
|
fn call(
|
||||||
|
&mut self,
|
||||||
|
request: tonic::Request<super::SubmissionId>,
|
||||||
|
) -> Self::Future {
|
||||||
|
let inner = Arc::clone(&self.0);
|
||||||
|
let fut = async move {
|
||||||
|
<T as ValidatorSubmissionService>::set_status_not_uploaded(
|
||||||
|
&inner,
|
||||||
|
request,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let accept_compression_encodings = self.accept_compression_encodings;
|
||||||
|
let send_compression_encodings = self.send_compression_encodings;
|
||||||
|
let max_decoding_message_size = self.max_decoding_message_size;
|
||||||
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
|
let inner = self.inner.clone();
|
||||||
|
let fut = async move {
|
||||||
|
let method = SetStatusNotUploadedSvc(inner);
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
|
.apply_compression_config(
|
||||||
|
accept_compression_encodings,
|
||||||
|
send_compression_encodings,
|
||||||
|
)
|
||||||
|
.apply_max_message_size_config(
|
||||||
|
max_decoding_message_size,
|
||||||
|
max_encoding_message_size,
|
||||||
|
);
|
||||||
|
let res = grpc.unary(method, req).await;
|
||||||
|
Ok(res)
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
"/validator.ValidatorSubmissionService/SetStatusReleased" => {
|
"/validator.ValidatorSubmissionService/SetStatusReleased" => {
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct SetStatusReleasedSvc<T: ValidatorSubmissionService>(
|
struct SetStatusReleasedSvc<T: ValidatorSubmissionService>(
|
||||||
@@ -1995,6 +2272,57 @@ pub mod validator_submission_service_server {
|
|||||||
};
|
};
|
||||||
Box::pin(fut)
|
Box::pin(fut)
|
||||||
}
|
}
|
||||||
|
"/validator.ValidatorSubmissionService/SetStatusNotReleased" => {
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
|
struct SetStatusNotReleasedSvc<T: ValidatorSubmissionService>(
|
||||||
|
pub Arc<T>,
|
||||||
|
);
|
||||||
|
impl<
|
||||||
|
T: ValidatorSubmissionService,
|
||||||
|
> tonic::server::UnaryService<super::SubmissionId>
|
||||||
|
for SetStatusNotReleasedSvc<T> {
|
||||||
|
type Response = super::NullResponse;
|
||||||
|
type Future = BoxFuture<
|
||||||
|
tonic::Response<Self::Response>,
|
||||||
|
tonic::Status,
|
||||||
|
>;
|
||||||
|
fn call(
|
||||||
|
&mut self,
|
||||||
|
request: tonic::Request<super::SubmissionId>,
|
||||||
|
) -> Self::Future {
|
||||||
|
let inner = Arc::clone(&self.0);
|
||||||
|
let fut = async move {
|
||||||
|
<T as ValidatorSubmissionService>::set_status_not_released(
|
||||||
|
&inner,
|
||||||
|
request,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let accept_compression_encodings = self.accept_compression_encodings;
|
||||||
|
let send_compression_encodings = self.send_compression_encodings;
|
||||||
|
let max_decoding_message_size = self.max_decoding_message_size;
|
||||||
|
let max_encoding_message_size = self.max_encoding_message_size;
|
||||||
|
let inner = self.inner.clone();
|
||||||
|
let fut = async move {
|
||||||
|
let method = SetStatusNotReleasedSvc(inner);
|
||||||
|
let codec = tonic_prost::ProstCodec::default();
|
||||||
|
let mut grpc = tonic::server::Grpc::new(codec)
|
||||||
|
.apply_compression_config(
|
||||||
|
accept_compression_encodings,
|
||||||
|
send_compression_encodings,
|
||||||
|
)
|
||||||
|
.apply_max_message_size_config(
|
||||||
|
max_decoding_message_size,
|
||||||
|
max_encoding_message_size,
|
||||||
|
);
|
||||||
|
let res = grpc.unary(method, req).await;
|
||||||
|
Ok(res)
|
||||||
|
};
|
||||||
|
Box::pin(fut)
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
let mut response = http::Response::new(
|
let mut response = http::Response::new(
|
||||||
|
|||||||
Reference in New Issue
Block a user