Skip to content

Commit 3d14408

Browse files
committed
CommitOffset with readsessionid
1 parent 7de9687 commit 3d14408

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ydb/_grpc/grpcwrapper/ydb_topic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,15 @@ class CommitOffsetRequest(IToProto):
143143
consumer: str
144144
partition_id: int
145145
offset: int
146+
read_session_id: Optional[str]
146147

147148
def to_proto(self) -> ydb_topic_pb2.CommitOffsetRequest:
148149
return ydb_topic_pb2.CommitOffsetRequest(
149150
path=self.path,
150151
consumer=self.consumer,
151152
partition_id=self.partition_id,
152153
offset=self.offset,
154+
read_session_id=self.read_session_id,
153155
)
154156

155157

ydb/topic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ async def commit_offset(self, path: str, consumer: str, partition_id: int, offse
346346
consumer=consumer,
347347
partition_id=partition_id,
348348
offset=offset,
349+
read_session_id=None,
349350
)
350351

351352
await self._driver(
@@ -624,6 +625,7 @@ def commit_offset(self, path: str, consumer: str, partition_id: int, offset: int
624625
consumer=consumer,
625626
partition_id=partition_id,
626627
offset=offset,
628+
read_session_id=None,
627629
)
628630

629631
self._driver(

0 commit comments

Comments
 (0)