-
Notifications
You must be signed in to change notification settings - Fork 35
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
Replace dapr packages to use the official crate instead of personal forks #47
Conversation
…oject/drasi-platform into drasi-project-dapr-fork * 'drasi-project-dapr-fork' of https://github.com/drasi-project/drasi-platform: remove sha1 (#36) windows dev support (#40) release docs (#32)
// Introduce delay so that dapr grpc port is assigned before app tries to connect | ||
std::thread::sleep(std::time::Duration::new(3, 0)); | ||
|
||
let dapr_client = dapr::Client::<dapr::client::TonicClient>::connect(dapr_addr) | ||
let addr = "https://127.0.0.1".to_string(); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
let mongo_uri = std::env::var("MONGO_URI").unwrap_or("mongodb://rg-mongo:27017".to_string()); | ||
let mongo_db = std::env::var("MONGO_DB").unwrap_or("api".to_string()); | ||
let redis_url = std::env::var("REDIS_URL").unwrap_or("redis://rg-redis:6379".to_string()); | ||
|
||
// Introduce delay so that dapr grpc port is assigned before app tries to connect | ||
std::thread::sleep(std::time::Duration::new(5, 0)); | ||
|
||
let dapr_client = dapr::Client::<dapr::client::TonicClient>::connect(dapr_addr) | ||
let addr = "https://127.0.0.1".to_string(); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
@@ -86,9 +83,10 @@ | |||
pubsub, | |||
)); | |||
|
|||
let dapr_client = dapr::Client::<dapr::client::TonicClient>::connect(dapr_addr) | |||
let addr = "https://127.0.0.1".to_string(); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
3937026
to
b6fa80a
Compare
Description
As our previous contributions to the Dapr Rust SDK repo have been merged and a new version was released, we should replace the source of the
dapr
package in ourCargo.toml
files to use the official crate.Currently, we are setting the version to be fixed at
0.15.1
. We also had to updateaxum
to the latest version to ensure that everything is compatible (which includes some code changes, seeview-svc
).Type of change
Fixes: #issue_number