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