We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def parse_nacos_server_addr(server_addr): sp = server_addr.split(":") if len(sp) == 3: return sp[0] + ":" + sp[1], int(sp[2]) else: port = int(sp[1]) if len(sp) > 1 else 8848 return sp[0], port int(sp[2])遇到非int的路径报错,sp[2]不一定是具体的端口号,可能包含其他路径,如:8080/diamond**
def parse_nacos_server_addr(server_addr): sp = server_addr.split(":") if len(sp) == 3: return sp[0] + ":" + sp[1], int(sp[2]) else: port = int(sp[1]) if len(sp) > 1 else 8848 return sp[0], port
The text was updated successfully, but these errors were encountered:
No branches or pull requests
def parse_nacos_server_addr(server_addr): sp = server_addr.split(":") if len(sp) == 3: return sp[0] + ":" + sp[1], int(sp[2]) else: port = int(sp[1]) if len(sp) > 1 else 8848 return sp[0], port
int(sp[2])遇到非int的路径报错,sp[2]不一定是具体的端口号,可能包含其他路径,如:8080/diamond**
The text was updated successfully, but these errors were encountered: