Skip to content
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

Instantiating the Dapr client #241

Closed
AlbertoVPersonal opened this issue Nov 8, 2024 · 0 comments
Closed

Instantiating the Dapr client #241

AlbertoVPersonal opened this issue Nov 8, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers P0
Milestone

Comments

@AlbertoVPersonal
Copy link

AlbertoVPersonal commented Nov 8, 2024

Expected Behavior

Show the correct way to create the client.

const ADDR: &str = "http://localhost";

let client_result = dapr::Client::<dapr::client::TonicClient>::connect(ADDR.to_string()).await;

In the examples folder the code is similar to the mine:

    // Set the Dapr address
    let addr = "https://127.0.0.1".to_string();

    // Create the client
    let mut client = dapr::Client::<dapr::client::TonicClient>::connect(addr).await?;

Actual Behavior

Show the incorrect code to create a client.

const addr: String = "https://127.0.0.1";
const port: String = "50001";

let mut client = dapr::Client::<dapr::client::TonicClient>::connect(addr,
    port).await?;

Steps to Reproduce the Problem

Not applicable.

Release Note

RELEASE NOTE: UPDATE How to configure the client in the Rust SDK.

@mikeee mikeee added documentation Improvements or additions to documentation good first issue Good for newcomers P1 P0 and removed P1 labels Nov 8, 2024
@mikeee mikeee added this to the 0.16.0 milestone Nov 8, 2024
mikeee added a commit to mikeee/dapr_rust-sdk that referenced this issue Nov 21, 2024
@mikeee mikeee mentioned this issue Nov 25, 2024
3 tasks
@mikeee mikeee closed this as completed Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers P0
Projects
None yet
Development

No branches or pull requests

2 participants