Skip to content

Commit 5ce4dc0

Browse files
authored
feat: support hstream:// prefix url (#145)
1 parent 5b363d4 commit 5ce4dc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/src/main/java/io/hstream/impl/HStreamClientBuilderImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public HStreamClient build() {
7575
}
7676

7777
private List<String> parseServerUrls(String url) {
78-
return List.of(url.strip().split(","));
78+
var prefix = "hstream://";
79+
String uriStr = url.strip();
80+
if (uriStr.startsWith(prefix)) {
81+
uriStr = uriStr.substring(prefix.length());
82+
}
83+
return List.of(uriStr.split(","));
7984
}
8085
}

0 commit comments

Comments
 (0)