Skip to content

Commit 17af3c4

Browse files
authored
fix: Disable publish idempotence by default (#415)
The python library sends batches out of order, which fails validation on the server when publish idempotence is enabled.
1 parent 3eca8cc commit 17af3c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/pubsublite/cloudpubsub/publisher_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(
7373
credentials: Optional[Credentials] = None,
7474
transport: str = "grpc_asyncio",
7575
client_options: Optional[ClientOptions] = None,
76-
enable_idempotence: bool = True,
76+
enable_idempotence: bool = False,
7777
):
7878
"""
7979
Create a new PublisherClient.
@@ -148,7 +148,7 @@ def __init__(
148148
credentials: Optional[Credentials] = None,
149149
transport: str = "grpc_asyncio",
150150
client_options: Optional[ClientOptions] = None,
151-
enable_idempotence: bool = True,
151+
enable_idempotence: bool = False,
152152
):
153153
"""
154154
Create a new AsyncPublisherClient.

0 commit comments

Comments
 (0)