remove taskService and imageStoreService

Signed-off-by: yason <yan.xuean@zte.com.cn>
This commit is contained in:
yason
2017-12-12 16:40:22 +08:00
parent 41c8763e2b
commit 4762b3e273
6 changed files with 7 additions and 16 deletions

View File

@@ -199,13 +199,13 @@ func (c *criContainerdService) createImageReference(ctx context.Context, name st
}
// TODO(random-liu): Figure out which is the more performant sequence create then update or
// update then create.
_, err := c.imageStoreService.Create(ctx, img)
_, err := c.client.ImageService().Create(ctx, img)
if err == nil {
return nil
}
if err != nil && !errdefs.IsAlreadyExists(err) {
return err
}
_, err = c.imageStoreService.Update(ctx, img, "target")
_, err = c.client.ImageService().Update(ctx, img, "target")
return err
}