mirror of https://github.com/milvus-io/milvus.git
[skip ci] Update codes of benchmark (#10897)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/10913/head
parent
41f1378a01
commit
b756b23401
|
@ -28,7 +28,6 @@ def save(obj):
|
|||
logger.error("obj is not instance of Metric")
|
||||
return False
|
||||
|
||||
logger.debug(vars(obj))
|
||||
if not isinstance(obj.server, Server):
|
||||
logger.error("obj.server is not instance of Server")
|
||||
return False
|
||||
|
@ -54,5 +53,6 @@ def save(obj):
|
|||
obj.env = {"id": env_doc_id, "value": vars(obj.env)}
|
||||
|
||||
# insert data to mongoDB
|
||||
logger.debug(vars(obj))
|
||||
collection = _client[DB][DOC_COLLECTION]
|
||||
collection.insert_one(vars(obj))
|
||||
|
|
Loading…
Reference in New Issue