Undo changes.

This commit is contained in:
WK 2020-08-30 14:56:23 +08:00 committed by GitHub
parent 08350ec0ef
commit 6a99983ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -268,13 +268,7 @@ class DnsResolver implements Resolver {
* @param target
*/
static getDefaultAuthority(target: GrpcUri): string {
const hostPort = uri_parser_1.splitHostPort(target.path);
if (hostPort !== null) {
return hostPort.host;
}
else {
throw new Error(`Failed to parse target ${uri_parser_1.uriToString(target)}`);
}
return target.path;
}
}