-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated the instantiation process as per the async. #11
Updated the instantiation process as per the async. #11
Conversation
please remove .DS_Store and .sqlx folder/file |
src/runtime_v2/service.rs
Outdated
@@ -284,3 +342,91 @@ impl server_traits::DriverDetails for super::Runtime { | |||
})) | |||
} | |||
} | |||
|
|||
// #[tonic::async_trait] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't put commented code
@@ -0,0 +1 @@ | |||
UPI_HOST=34.93.161.62 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't commit envs
# grpcurl -plaintext -d @ localhost:8080 finternet.PrintMessage/Print <<EOM | ||
# { | ||
# "message":"hello grpc" | ||
# } | ||
# EOM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code
src/server.rs
Outdated
// .add_service(user_sign_up_service) | ||
// .add_service(user_login_sevice) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't keep commented code
src/runtime_v2/storage/sql.rs
Outdated
@@ -170,6 +170,7 @@ impl DriverStorage for SqliteStorage { | |||
driver_info: &DriverInfo, | |||
engine: wasmtime::Engine, | |||
) -> Result<Option<Component>> { | |||
println!("i will panic here"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
src/runtime_v2/service.rs
Outdated
@@ -35,6 +84,7 @@ impl server_traits::Execution for super::Runtime { | |||
&self, | |||
request: Request<types::ExecutionRequest>, | |||
) -> Result<Response<types::ExecutionResponse>, tonic::Status> { | |||
// let user_id= get_user_id(&request).map_err(|e| tonic::Status::internal(e.to_string()))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
src/runtime_v2/service.rs
Outdated
None => return Err(Box::new(Status::unauthenticated("No JWT token found"))), | ||
}; | ||
|
||
let secret = b"finternet"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't hardcode secrets take them from the config
src/runtime_v2.rs
Outdated
wasmtime_wasi::add_to_linker_async(&mut linker).map_err(|err| { | ||
types::component::module::component::units::driver::DriverError::SystemError(err.to_string()) | ||
})?; | ||
println!("error is here"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this print
@@ -134,7 +135,7 @@ struct Config { | |||
impl Config { | |||
fn new() -> Self { | |||
Config { | |||
host: format!("http://{}:8030", env!("UPI_HOST")), | |||
host: format!("http://34.93.161.62:8030"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use env, don't do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't commit .sqlx file
No description provided.