Commit 0c7f870
committed
Fix: PineconeGrpcFuture blocks during construction
When using grpc with async_req, the construction of a
PineconeGrpcFuture would call _sync_state, which would do a blocking
call to grpc_future.exception(...). This means that the async_reqs
were all blocking in practice.
We can fix it by checking if the future is still running and not doing
any blocking calls when it is.1 parent e22773f commit 0c7f870
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
0 commit comments