Commit 85974a26 authored by jyong's avatar jyong

add gevent grpc compatible

parent c007dbdc
...@@ -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.experimental.gevent import grpc._cython.cygrpc
grpc.experimental.gevent.init_gevent() grpc._cython.cygrpc.init_grpc_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