Skip to content

Commit

Permalink
Merge pull request #103 from FederatedAI/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
forgivedengkai authored Apr 20, 2021
2 parents f3c0c1f + d218d37 commit eb16ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public Object inference(Context context, InboundPackage data) throws Exception {
if (StringUtils.isNotBlank(serviceId)) {
inferenceRequest.setServiceId(serviceId);
}
if(params.get("applyId")!=null){
inferenceRequest.setApplyId(params.get("applyId").toString());
}

for (Map.Entry<String, Object> entry : featureData.entrySet()) {
inferenceRequest.getFeatureData().put(entry.getKey(), entry.getValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,11 @@ public synchronized ManagedChannel createManagedChannel(String ip, int port, Net
} else {
channelBuilder.usePlaintext();
}

return channelBuilder.build();
} catch (SSLException e) {
throw new SecurityException(e);
} catch (Exception e) {
e.printStackTrace();
}
catch (Exception e) {
logger.error("create channel error : " ,e);
//e.printStackTrace();
}
return null;
}
Expand Down

0 comments on commit eb16ba6

Please sign in to comment.