fix: server error return

Signed-off-by: haoyun <yun.hao@daocloud.io>
This commit is contained in:
haoyun 2021-11-22 13:54:53 +08:00
parent 7020719646
commit fa6759ae53

View File

@ -219,7 +219,7 @@ can be used and modified as necessary as a custom configuration.`
return ctx.Err()
case r := <-chsrv:
if r.err != nil {
return err
return r.err
}
server = r.s
}