Skip to content

Commit

Permalink
geerpc/day5 day6 day7: update the function description of XDial
Browse files Browse the repository at this point in the history
  • Loading branch information
geektutu committed Oct 6, 2020
1 parent b5646b6 commit d958ec5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gee-rpc/day5-http-debug/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "@")
Expand Down
4 changes: 3 additions & 1 deletion gee-rpc/day6-load-balance/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "@")
Expand Down
4 changes: 3 additions & 1 deletion gee-rpc/day7-registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "@")
Expand Down

0 comments on commit d958ec5

Please sign in to comment.