mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 19:08:30 +08:00
[skip ci] Update codes of benchmark (#10897)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
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
Block a user