Skip to content

Commit

Permalink
Change format of delay for invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Jun 3, 2024
1 parent 5756102 commit 4c40798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/concepts/invocations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ Invocations get a unique identifier. This identifier is used to track the progre
---

```bash
curl localhost:8080/GreeterService/greet/send?delaySec=10 \
curl localhost:8080/GreeterService/greet/send?delay=10s \
-H 'content-type: application/json' \
-d '"Hi"'
curl localhost:8080/GreetCounter/Mary/greet/send?delaySec=10 \
curl localhost:8080/GreetCounter/Mary/greet/send?delay=10s \
-H 'content-type: application/json' \
-d '"Hi"'
```
Expand Down
6 changes: 3 additions & 3 deletions docs/invoke/http.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ You can use this identifier [to cancel](/operate/invocation#cancelling-invocatio

## Sending a delayed message over HTTP

You can **delay the message** by adding a delay request parameter in ISO8601 notation or in seconds:
You can **delay the message** by adding a delay request parameter in ISO8601 notation or using [humantime format](https://docs.rs/humantime/latest/humantime/):

<CH.Code>

```shell seconds
```shell humantime
# focus[40:56]
curl localhost:8080/MyService/myHandler/send?delaySec=10 \
curl localhost:8080/MyService/myHandler/send?delay=10s \
-H 'content-type: application/json' \
-d '{"name": "Mary", "age": 25}'
```
Expand Down

0 comments on commit 4c40798

Please sign in to comment.