[skip ci] Update codes of benchmark (#10897)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-10-29 13:16:51 +08:00 committed by GitHub
parent 41f1378a01
commit b756b23401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))