lib/relay: Prevent lock nil deref when creation dynamic client (#6175)
This commit is contained in:
parent
8c91e012c7
commit
de886b3f22
@ -33,7 +33,7 @@ func newDynamicClient(uri *url.URL, certs []tls.Certificate, invitations chan pr
|
|||||||
certs: certs,
|
certs: certs,
|
||||||
timeout: timeout,
|
timeout: timeout,
|
||||||
}
|
}
|
||||||
c.commonClient = newCommonClient(invitations, c.serve, c.String())
|
c.commonClient = newCommonClient(invitations, c.serve, fmt.Sprintf("dynamicClient@%p", c))
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user