go example from yaron

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-03-16 17:47:54 -04:00
parent 4cc7808cc7
commit 026ce895f5
1 changed files with 3 additions and 3 deletions

View File

@ -97,9 +97,9 @@ import (
// code
err = client.SaveState(ctx, STATE_STORE_NAME, "order_1", []byte(strconv.Itoa(orderId)), nil)
metadata := map[string]string{
"ttlInSeconds": "120"
md := map[string]string{"ttlInSeconds": "120"}
if err := client.SaveState(ctx, store, "key1", []byte("hello world"), md); err != nil {
panic(err)
}
```