Display state value instead of StateResponse object (#2046)

Signed-off-by: Jun Tian <tianjun.cpp@gmail.com>

Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com>
Signed-off-by: Antonio Robson de Paula <robson.p@sidi.org.br>
This commit is contained in:
Jun Tian 2021-12-25 01:07:03 +08:00 committed by Antonio Robson de Paula
parent 79213c142b
commit eea015b833
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ while True:
#Using Dapr SDK to save and get state
client.save_state(DAPR_STORE_NAME, "order_1", str(orderId))
result = client.get_state(DAPR_STORE_NAME, "order_1")
logging.info('Result after get: ' + str(result))
logging.info('Result after get: ' + result.data.decode('utf-8'))
```
Navigate to the directory containing the above code, then run the following command to launch a Dapr sidecar and run the application: