chore: rename ServiceName -> NamedService (#233)
BREAKING CHANGE: Rename `ServiceName` to `NamedService`.
This commit is contained in:
committed by
Lucio Franco
parent
eba7ec7b32
commit
6ee2ed9b4f
@@ -188,7 +188,7 @@ fn generate_transport(
|
||||
let service_name = syn::LitStr::new(service_name, proc_macro2::Span::call_site());
|
||||
|
||||
quote! {
|
||||
impl<T: #server_trait> tonic::transport::ServiceName for #server_service<T> {
|
||||
impl<T: #server_trait> tonic::transport::NamedService for #server_service<T> {
|
||||
const NAME: &'static str = #service_name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user