Commit 834f3e33 authored by jyong's avatar jyong

add gevent grpc compatible

parent 6ddc4402
...@@ -7,8 +7,8 @@ if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true': ...@@ -7,8 +7,8 @@ if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true':
from gevent import monkey from gevent import monkey
monkey.patch_all() monkey.patch_all()
if os.environ.get("VECTOR_STORE") == 'milvus': if os.environ.get("VECTOR_STORE") == 'milvus':
import grpc._cython.cygrpc import grpc.experimental.gevent
grpc._cython.cygrpc.init_grpc_gevent() grpc.experimental.gevent.init_gevent()
import logging import logging
import json import json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment