mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +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
|
||||
func NetListener(customListener net.Listener) ListenOption {
|
||||
return func(o *ListenOptions) {
|
||||
if customListener != nil {
|
||||
if customListener == nil {
|
||||
return
|
||||
}
|
||||
if o.Context == nil {
|
||||
|
Reference in New Issue
Block a user