mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +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)
|
resultCtxCh := make(chan *ResultContext)
|
||||||
errCh := make(chan error)
|
errCh := make(chan error)
|
||||||
go func() {
|
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) {
|
_, err := c.Build(context.Background(), solveOpt, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {
|
||||||
ctx, cancel := context.WithCancel(ctx)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
resultCtx := ResultContext{}
|
||||||
res2, err := c.Solve(ctx, gateway.SolveRequest{
|
res2, err := c.Solve(ctx, gateway.SolveRequest{
|
||||||
Evaluate: true,
|
Evaluate: true,
|
||||||
Definition: target,
|
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.
|
// ResultContext is a build result with the client that built it.
|
||||||
type ResultContext struct {
|
type ResultContext struct {
|
||||||
client *client.Client
|
|
||||||
res *gateway.Result
|
res *gateway.Result
|
||||||
solveOpt client.SolveOpt
|
|
||||||
|
|
||||||
solveErr *errdefs.SolveError
|
solveErr *errdefs.SolveError
|
||||||
|
|
||||||
gwClient gateway.Client
|
gwClient gateway.Client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user