Skip to content

Commit bc85dbc

Browse files
Updates the docs for clarity and correctness
Signed-off-by: Elena Kolevska <elena@kolevska.com>
1 parent af1189a commit bc85dbc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

daprdocs/content/en/python-sdk-docs/python-client.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ with DaprClient() as d:
3939
```
4040

4141
#### Specifying an endpoint on initialisation:
42-
When passed as an argument in the constructor, the endpoint takes precedence over any configuration or environment variable.
42+
When passed as an argument in the constructor, the gRPC endpoint takes precedence over any configuration or environment variable.
4343

4444
```python
4545
from dapr.clients import DaprClient
@@ -48,14 +48,13 @@ with DaprClient("mydomain:50051?tls=true") as d:
4848
# use the client
4949
```
5050

51-
#### Specifying an endpoint in an environment variable:
52-
You can use the standardised `DAPR_GRPC_ENDPOINT` and/or `DAPR_HTTP_ENDPOINT` environment variables to
53-
specify the endpoint. When these environment variables are set, the client can be initialised
51+
#### Specifying the endpoint in an environment variable:
52+
You can use the standardised `DAPR_GRPC_ENDPOINT` environment variable to
53+
specify the gRPC endpoint. When this variable is set, the client can be initialised
5454
without any arguments:
5555

5656
```bash
5757
export DAPR_GRPC_ENDPOINT="mydomain:50051?tls=true"
58-
export DAPR_HTTP_ENDPOINT="https://mydomain:443"
5958
```
6059
```python
6160
from dapr.clients import DaprClient
@@ -65,7 +64,7 @@ with DaprClient() as d:
6564
```
6665

6766
The legacy environment variables `DAPR_RUNTIME_HOST`, `DAPR_HTTP_PORT` and `DAPR_GRPC_PORT` are
68-
also supported, but `DAPR_GRPC_ENDPOINT` and `DAPR_HTTP_ENDPOINT` take precedence.
67+
also supported, but `DAPR_GRPC_ENDPOINT` takes precedence.
6968

7069

7170
## Building blocks

0 commit comments

Comments
 (0)