From fd5d90c699d15009b18d64d8e283e73bca2ba62c Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Sat, 15 Apr 2023 14:53:23 +0900 Subject: [PATCH] remove unused fields from ResultContext Signed-off-by: Kohei Tokunaga --- build/result.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/build/result.go b/build/result.go index 95c2c06f..3d394be7 100644 --- a/build/result.go +++ b/build/result.go @@ -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