Skip to content

Commit 4d7c5fc

Browse files
disable streaming thread
1 parent fd0003d commit 4d7c5fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AsyncResultSetImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ public ApiFuture<Void> setCallback(Executor exec, ReadyCallback cb) {
489489
// Start to fetch data and buffer these.
490490
this.result = SettableApiFuture.create();
491491
this.state = State.STREAMING_INITIALIZED;
492-
this.service.execute(new InitiateStreamingRunnable());
492+
initiateProduceRows();
493+
// this.service.execute(new InitiateStreamingRunnable());
493494
this.executor = MoreExecutors.newSequentialExecutor(Preconditions.checkNotNull(exec));
494495
this.callback = Preconditions.checkNotNull(cb);
495496
pausedLatch.countDown();

0 commit comments

Comments
 (0)