1
0
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:
Arvin
2022-08-03 00:54:51 +08:00
committed by GitHub
parent 63a9b94820
commit 51250bf248

View File

@ -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 {