提交 5e059824 编写于 作者: Y YiLin.Li

shim/runtime: Clean up unused remote attestation codes in service.go

Signed-off-by: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 02a30073
......@@ -367,20 +367,11 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ *
v, err := typeurl.UnmarshalAny(r.Options)
if err != nil {
logrus.Errorf("Get rune options error: %v", err)
}
if err != nil {
return nil, err
}
opts = *v.(*options.Options)
}
//result := make(chan bool, 1)
// start remote attestation
if opts.BinaryName == constants.RuneOCIRuntime {
logrus.Infof("Attestation Start")
//go attestation.Attestation_main(ctx, result)
}
ns, err := namespaces.NamespaceRequired(ctx)
if err != nil {
return nil, err
......@@ -417,15 +408,6 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ *
logrus.Infof("TaskCreate sent: %s %d", r.ID, container.Pid())
if opts.BinaryName == constants.RuneOCIRuntime {
//// judge remote attestation result
//switch <-result {
//case true:
// log.G(ctx).Infof("Attestation Success!")
//case false:
// log.G(ctx).Infof("Attestation Failed!")
//}
}
logrus.Debugf("Create: total time cost: %d", (time.Now().Sub(timeStart))/time.Second)
logrus.Debugf("Create: total time cost: %d", (time.Now().Sub(ts))/time.Second)
return &taskAPI.CreateTaskResponse{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册