Revert "Use protoversion for containerd version"
This reverts commit d2e319523d
.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
c141cb670f
commit
e55ebadb09
5 changed files with 4 additions and 48 deletions
|
@ -23,10 +23,6 @@ import (
|
|||
|
||||
// TODO: parse flags and pass opts
|
||||
func getClient(ctx *cli.Context) types.APIClient {
|
||||
return types.NewAPIClient(getClientConn(ctx))
|
||||
}
|
||||
|
||||
func getClientConn(ctx *cli.Context) *grpc.ClientConn {
|
||||
dialOpts := []grpc.DialOption{grpc.WithInsecure()}
|
||||
dialOpts = append(dialOpts,
|
||||
grpc.WithDialer(func(addr string, timeout time.Duration) (net.Conn, error) {
|
||||
|
@ -37,7 +33,7 @@ func getClientConn(ctx *cli.Context) *grpc.ClientConn {
|
|||
if err != nil {
|
||||
fatal(err.Error(), 1)
|
||||
}
|
||||
return conn
|
||||
return types.NewAPIClient(conn)
|
||||
}
|
||||
|
||||
var ContainersCommand = cli.Command{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue