mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
err value shouldn't be use
This commit is contained in:
parent
c1ee2a0adb
commit
ec11cf0a6d
@ -171,11 +171,7 @@ func (p *Pool) Get(ctx context.Context) (*ClientConn, error) {
|
|||||||
if wrapper.ClientConn == nil {
|
if wrapper.ClientConn == nil {
|
||||||
wrapper.ClientConn, err = p.factory(ctx)
|
wrapper.ClientConn, err = p.factory(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// If there was an error, we want to put back a placeholder
|
return nil, err
|
||||||
// client in the channel
|
|
||||||
clients <- ClientConn{
|
|
||||||
pool: p,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// This is a new connection, reset its initiated time
|
// This is a new connection, reset its initiated time
|
||||||
wrapper.timeInitiated = time.Now()
|
wrapper.timeInitiated = time.Now()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user