mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
libcontainer/supervisor: monitorDaemon: move options inline again
These were moved in 84965c0752
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -280,17 +280,15 @@ func (r *remote) monitorDaemon(ctx context.Context) {
|
||||
continue
|
||||
}
|
||||
|
||||
gopts := []grpc.DialOption{
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithContextDialer(dialer.ContextDialer),
|
||||
grpc.WithUnaryInterceptor(grpcerrors.UnaryClientInterceptor),
|
||||
grpc.WithStreamInterceptor(grpcerrors.StreamClientInterceptor),
|
||||
}
|
||||
|
||||
client, err = containerd.New(
|
||||
r.GRPC.Address,
|
||||
containerd.WithTimeout(60*time.Second),
|
||||
containerd.WithDialOpts(gopts),
|
||||
containerd.WithDialOpts([]grpc.DialOption{
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithContextDialer(dialer.ContextDialer),
|
||||
grpc.WithUnaryInterceptor(grpcerrors.UnaryClientInterceptor),
|
||||
grpc.WithStreamInterceptor(grpcerrors.StreamClientInterceptor),
|
||||
}),
|
||||
)
|
||||
if err != nil {
|
||||
r.logger.WithError(err).Error("failed connecting to containerd")
|
||||
|
||||
Reference in New Issue
Block a user