mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
reset grpc connection after TransientFailure
This commit is contained in:
parent
f232ec4277
commit
757df0d284
1 changed files with 3 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ package client
|
|||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
pb "github.com/pilosa/pilosa/v2/proto"
|
||||
|
|
@ -107,7 +108,8 @@ func (c *GRPCClient) Conn() *grpc.ClientConn {
|
|||
c.mu.RUnlock()
|
||||
|
||||
if err := c.resetConn(); err != nil {
|
||||
// TODO: log this error once logger is in place
|
||||
// TODO: log this error with logger
|
||||
log.Printf("error resetting connection: %s", err)
|
||||
}
|
||||
|
||||
c.mu.RLock()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue