Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthivelmanii committed Nov 11, 2024
1 parent b56c88f commit c7ec27d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ CloseableIterator<PartialResultSet> startStream(
AsyncResultSet.StreamMessageListener streamListener) {
GrpcStreamIterator stream =
new GrpcStreamIterator(statement, prefetchChunks, cancelQueryWhenClientIsClosed);
stream.registerListener(streamListener);
if (streamListener != null) {
stream.registerListener(streamListener);
}
if (partitionToken != null) {
request.setPartitionToken(partitionToken);
}
Expand Down Expand Up @@ -967,7 +969,9 @@ CloseableIterator<PartialResultSet> startStream(
AsyncResultSet.StreamMessageListener streamListener) {
GrpcStreamIterator stream =
new GrpcStreamIterator(prefetchChunks, cancelQueryWhenClientIsClosed);
stream.registerListener(streamListener);
if (streamListener != null) {
stream.registerListener(streamListener);
}
TransactionSelector selector = null;
if (resumeToken != null) {
builder.setResumeToken(resumeToken);
Expand Down

0 comments on commit c7ec27d

Please sign in to comment.