remove unused fields from ResultContext

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
pull/1640/head
Kohei Tokunaga 2 years ago
parent 06399630a2
commit fd5d90c699
No known key found for this signature in database
GPG Key ID: 6CE0A04690DB3FB3

@ -73,13 +73,10 @@ func getResultAt(ctx context.Context, c *client.Client, solveOpt client.SolveOpt
resultCtxCh := make(chan *ResultContext)
errCh := make(chan error)
go func() {
resultCtx := ResultContext{
client: c,
solveOpt: solveOpt,
}
_, err := c.Build(context.Background(), solveOpt, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {
ctx, cancel := context.WithCancel(ctx)
defer cancel()
resultCtx := ResultContext{}
res2, err := c.Solve(ctx, gateway.SolveRequest{
Evaluate: true,
Definition: target,
@ -122,10 +119,7 @@ func getResultAt(ctx context.Context, c *client.Client, solveOpt client.SolveOpt
// ResultContext is a build result with the client that built it.
type ResultContext struct {
client *client.Client
res *gateway.Result
solveOpt client.SolveOpt
solveErr *errdefs.SolveError
gwClient gateway.Client

Loading…
Cancel
Save