Autogenerated update for 9a7a123284...8dce6ee1ba
This commit is contained in:
@@ -1549,32 +1549,6 @@ pub mod validator_submission_service_client {
|
||||
);
|
||||
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.
|
||||
@@ -1634,10 +1608,6 @@ pub mod validator_submission_service_server {
|
||||
&self,
|
||||
request: tonic::Request<super::SubmissionReleaseRequest>,
|
||||
) -> 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)]
|
||||
pub struct ValidatorSubmissionServiceServer<T> {
|
||||
@@ -2272,57 +2242,6 @@ pub mod validator_submission_service_server {
|
||||
};
|
||||
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 {
|
||||
let mut response = http::Response::new(
|
||||
|
||||
Reference in New Issue
Block a user