From 08af0aa3bb6ffaf0d87118492410f68a27da993f Mon Sep 17 00:00:00 2001 From: barriery Date: Mon, 17 Aug 2020 13:34:03 +0000 Subject: [PATCH] fix codestyle --- doc/PIPELINE_SERVING.md | 1 - doc/PIPELINE_SERVING_CN.md | 1 - python/pipeline/dag.py | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/PIPELINE_SERVING.md b/doc/PIPELINE_SERVING.md index a4416d92..98b35929 100644 --- a/doc/PIPELINE_SERVING.md +++ b/doc/PIPELINE_SERVING.md @@ -581,4 +581,3 @@ Take imdb model ensemble as an example: ```shell curl -X POST -k http://localhost:8080/v1/example/echo -d '{"key": ["words"], "value": ["i am very sad | 0"]}' ``` - diff --git a/doc/PIPELINE_SERVING_CN.md b/doc/PIPELINE_SERVING_CN.md index 8a25114d..44804e5d 100644 --- a/doc/PIPELINE_SERVING_CN.md +++ b/doc/PIPELINE_SERVING_CN.md @@ -578,4 +578,3 @@ go build .go ```shell curl -X POST -k http://localhost:8080/v1/example/echo -d '{"key": ["words"], "value": ["i am very sad | 0"]}' ``` - diff --git a/python/pipeline/dag.py b/python/pipeline/dag.py index 0e058dbe..b7931e1b 100644 --- a/python/pipeline/dag.py +++ b/python/pipeline/dag.py @@ -299,13 +299,12 @@ class DAGExecutor(object): sys.stderr.write(profile_str) # add profile info into rpc_resp - profile_value = "" if resp_channeldata.client_need_profile: profile_set = resp_channeldata.profile_data_set profile_set.add(profile_str) profile_value = "".join(list(profile_set)) - rpc_resp.key.append(self._client_profile_key) - rpc_resp.value.append(profile_value) + rpc_resp.key.append(self._client_profile_key) + rpc_resp.value.append(profile_value) return rpc_resp -- GitLab