mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
fix: Fix a logic judgment bug. (#2540)
Signed-off-by: Arvin <1458070668@qq.com>
This commit is contained in:
@ -107,7 +107,7 @@ func WithTimeout(d time.Duration) DialOption {
|
|||||||
// NetListener Set net.Listener for httpTransport
|
// NetListener Set net.Listener for httpTransport
|
||||||
func NetListener(customListener net.Listener) ListenOption {
|
func NetListener(customListener net.Listener) ListenOption {
|
||||||
return func(o *ListenOptions) {
|
return func(o *ListenOptions) {
|
||||||
if customListener != nil {
|
if customListener == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if o.Context == nil {
|
if o.Context == nil {
|
||||||
|
Reference in New Issue
Block a user