fix some comments
This commit is contained in:
@ -76,8 +76,8 @@ func WithCodec(c Codec) DialOption {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying
|
// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying
|
||||||
// connection is up. Without this, Dial returns immediately and connects the server in
|
// connection is up. Without this, Dial returns immediately and connecting the server
|
||||||
// background.
|
// happens in background.
|
||||||
func WithBlock() DialOption {
|
func WithBlock() DialOption {
|
||||||
return func(o *dialOptions) {
|
return func(o *dialOptions) {
|
||||||
o.block = true
|
o.block = true
|
||||||
@ -122,7 +122,7 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
|
|||||||
return nil, ErrUnspecTarget
|
return nil, ErrUnspecTarget
|
||||||
}
|
}
|
||||||
cc := &ClientConn{
|
cc := &ClientConn{
|
||||||
target: target,
|
target: target,
|
||||||
shutdownChan: make(chan struct{}),
|
shutdownChan: make(chan struct{}),
|
||||||
}
|
}
|
||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
|
Reference in New Issue
Block a user