diff --git a/client_online.go b/client_online.go index 26a4160..ba77da9 100644 --- a/client_online.go +++ b/client_online.go @@ -96,7 +96,7 @@ func NewClient(cfg *Config) (*Client, error) { // Bootstrap is gonna connect the client to the endpoints func (c *Client) Bootstrap() error { - grpcConn, err := grpc.Dial(c.config.GRPCEndpoint, grpc.WithTransportCredentials(insecure.NewCredentials())) + grpcConn, err := grpc.NewClient(c.config.GRPCEndpoint, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { return crgerrs.WrapError(crgerrs.ErrOnlineClient, fmt.Sprintf("dialing grpc endpoint %s", err.Error())) } diff --git a/go.mod b/go.mod index f049aba..572af3c 100644 --- a/go.mod +++ b/go.mod @@ -100,7 +100,6 @@ require ( github.com/klauspost/compress v1.17.7 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect diff --git a/load.go b/load.go index 9dc1a09..85ec656 100644 --- a/load.go +++ b/load.go @@ -47,7 +47,7 @@ func openClient(endpoint string) (client *grpc.ClientConn, err error) { MinVersion: tls.VersionTLS12, }) - client, err = grpc.Dial(endpoint, grpc.WithTransportCredentials(tlsCredentials)) + client, err = grpc.NewClient(endpoint, grpc.WithTransportCredentials(tlsCredentials)) if err != nil { return nil, crgerrs.WrapError(crgerrs.ErrClient, fmt.Sprintf("getting grpc client connection %s", err.Error())) }