You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@submarine.apache.org by GitBox <gi...@apache.org> on 2022/12/10 14:31:32 UTC

[GitHub] [submarine] cdmikechen commented on a diff in pull request #1020: SUBMARINE-1349. Fix the syntax error reported in sonarcloud and add init value for apiversion in XGboostjobList.java

cdmikechen commented on code in PR #1020:
URL: https://github.com/apache/submarine/pull/1020#discussion_r1045092474


##########
submarine-server/server-core/src/main/java/org/apache/submarine/server/s3/Client.java:
##########
@@ -43,19 +45,38 @@
 
 public class Client {
   public MinioClient minioClient;
+  public static Map<String,MinioClient> minioClientFactory = new HashMap<String, MinioClient>();
+  public static Map<String,Client> clientFactory = new HashMap<String, Client>();
+
+  public static Client getClient(String endpoint) {

Review Comment:
   Maybe you can use a `enum` class to replace inner factory class to avoid client double checks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org