mirror of https://github.com/dapr/docs.git
fix gRPC-integration.md
This commit is contained in:
parent
8ac1551a3e
commit
ba5a25ed2d
|
@ -95,11 +95,11 @@ defer client.Close()
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// save state with the key key1
|
// save state with the key key1
|
||||||
err = client.SaveStateData(ctx, "statestore", "key1", "1", data)
|
err = client.SaveState(ctx, "statestore", "key1", data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
logger.Println("data saved")
|
log.Println("data saved")
|
||||||
```
|
```
|
||||||
|
|
||||||
Hooray!
|
Hooray!
|
||||||
|
|
Loading…
Reference in New Issue