Skip to content

Commit

Permalink
Fix for handling big messages from Python agent (LangStream#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet authored Dec 13, 2023
1 parent 651eec5 commit 3db40bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public synchronized void onNewSchemaToSend(Schema schema) {
@Override
public void start() throws Exception {
super.start();
request = AgentServiceGrpc.newStub(channel).withWaitForReady().process(responseObserver);
request = asyncStub.process(responseObserver);
restarting.set(false);
startFailedButDevelopmentMode = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onNewSchemaToSend(Schema schema) {
@Override
public void start() throws Exception {
super.start();
request = AgentServiceGrpc.newStub(channel).withWaitForReady().write(responseObserver);
request = asyncStub.write(responseObserver);
restarting.set(false);
startFailedButDevelopmentMode = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onNewSchemaToSend(Schema schema) {
@Override
public void start() throws Exception {
super.start();
request = AgentServiceGrpc.newStub(channel).withWaitForReady().read(responseObserver);
request = asyncStub.read(responseObserver);
restarting.set(false);
startFailedButDevelopmentMode = false;
}
Expand Down

0 comments on commit 3db40bd

Please sign in to comment.