From e85b34cbe09976f81a1417a72c6222248178a414 Mon Sep 17 00:00:00 2001 From: Lucas Johnston Date: Wed, 14 Apr 2021 09:36:44 -0900 Subject: [PATCH] docs: include `allowExcessMessages` in docs example (#1245) As per #784 Co-authored-by: Megan Potter <57276408+feywind@users.noreply.github.com> --- samples/synchronousPullWithLeaseManagement.js | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/synchronousPullWithLeaseManagement.js b/samples/synchronousPullWithLeaseManagement.js index 65b32d03b..13fd0a558 100644 --- a/samples/synchronousPullWithLeaseManagement.js +++ b/samples/synchronousPullWithLeaseManagement.js @@ -60,6 +60,7 @@ function main( const request = { subscription: formattedSubscription, maxMessages: maxMessages, + allowExcessMessages: false, }; let isProcessed = false;