From 4194c35c0f997f2e136dad1f1235604958ba574d Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Sun, 28 Mar 2021 16:05:19 -0700 Subject: [PATCH] Fixes to expires in jetstream docs --- jetstream/nats_api_reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetstream/nats_api_reference.md b/jetstream/nats_api_reference.md index 4c7fcfe..325c876 100644 --- a/jetstream/nats_api_reference.md +++ b/jetstream/nats_api_reference.md @@ -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 {