-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
geerpc/day5 day6 day7: update the function description of XDial
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,7 +306,9 @@ func DialHTTP(network, address string, opts ...*Option) (*Client, error) { | |
return dialTimeout(dialHTTP, network, address, opts...) | ||
} | ||
|
||
// XDial use a general format to represent a rpc server | ||
// XDial calls different functions to connect to a RPC server | ||
// according the first parameter rpcAddr. | ||
// rpcAddr is a general format (protocol@addr) to represent a rpc server | ||
// eg, [email protected]:7001, [email protected]:9999, unix@/tmp/geerpc.sock | ||
func XDial(rpcAddr string, opts ...*Option) (*Client, error) { | ||
parts := strings.Split(rpcAddr, "@") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,7 +306,9 @@ func DialHTTP(network, address string, opts ...*Option) (*Client, error) { | |
return dialTimeout(dialHTTP, network, address, opts...) | ||
} | ||
|
||
// XDial use a general format to represent a rpc server | ||
// XDial calls different functions to connect to a RPC server | ||
// according the first parameter rpcAddr. | ||
// rpcAddr is a general format (protocol@addr) to represent a rpc server | ||
// eg, [email protected]:7001, [email protected]:9999, unix@/tmp/geerpc.sock | ||
func XDial(rpcAddr string, opts ...*Option) (*Client, error) { | ||
parts := strings.Split(rpcAddr, "@") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,7 +306,9 @@ func DialHTTP(network, address string, opts ...*Option) (*Client, error) { | |
return dialTimeout(dialHTTP, network, address, opts...) | ||
} | ||
|
||
// XDial use a general format to represent a rpc server | ||
// XDial calls different functions to connect to a RPC server | ||
// according the first parameter rpcAddr. | ||
// rpcAddr is a general format (protocol@addr) to represent a rpc server | ||
// eg, [email protected]:7001, [email protected]:9999, unix@/tmp/geerpc.sock | ||
func XDial(rpcAddr string, opts ...*Option) (*Client, error) { | ||
parts := strings.Split(rpcAddr, "@") | ||
|