mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
remove unused fields from ResultContext
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
parent
06399630a2
commit
fd5d90c699
@ -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…
x
Reference in New Issue
Block a user