1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Fixes to expires in jetstream docs

This commit is contained in:
Waldemar Quevedo 2021-03-28 16:05:19 -07:00 committed by GitHub
parent d3289e6413
commit 4194c35c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,12 +185,12 @@ This is often not desired, pull consumers support a mode where a JSON document i
```javascript
{
"expires": "2020-11-10T12:41:00.075933464Z",
"expires": 7000000000,
"batch": 10,
}
```
This requests 10 messages and asks the server to keep this request until the specific `expires` time, this is useful when you poll the server frequently and do not want the pull requests to accumulate on the server. Set the expire time to now + your poll frequency.
This requests 10 messages and asks the server to keep this request for 7 seconds, this is useful when you poll the server frequently and do not want the pull requests to accumulate on the server. Set the expire time to now + your poll frequency.
```javascript
{