You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section Implementing our API End Point is telling me to create
pub struct UsersService {
pub pool: Pool,
}
#[tonic::async_trait]
impl grpc_api::users_server::Fortunes for UsersService
...
in crates/web-server/api_service.rs.
but in a later section Integrating Tonic and Axum
crates/web-server/src/main.rs should import use grpc_api::api::api_server::UsersServer;. Where is UsersServer coming from?
is users_service.rs used at all? I am a bit confused.
I am currently blocked on this, would you want to help me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thanks for the step-by-step tutorial! It;s been really helpful. I am learning so much from it.
I had a question:
https://rust-on-nails.com/docs/api/grpc/
Section
Implementing our API End Pointis telling me to createin
crates/web-server/api_service.rs.but in a later section
Integrating Tonic and Axumcrates/web-server/src/main.rsshould importuse grpc_api::api::api_server::UsersServer;. Where is UsersServer coming from?is
users_service.rsused at all? I am a bit confused.I am currently blocked on this, would you want to help me?
Beta Was this translation helpful? Give feedback.
All reactions