feat: update

This commit is contained in:
yanghao05
2025-04-22 14:45:04 +08:00
parent fb8c9a68a4
commit b1f090918d
19 changed files with 43 additions and 35 deletions

View File

@@ -38,7 +38,7 @@ func (c *OSSClient) Download(ctx context.Context, path, dest string) error {
Key: oss.Ptr(path),
}
_, err := c.client.GetObjectToFile(ctx, request, dest)
_, err := c.internalClient.GetObjectToFile(ctx, request, dest)
if err != nil {
return err
}

View File

@@ -97,14 +97,7 @@ func (q *Job) Start(ctx context.Context) error {
return errors.Wrap(err, "get client failed")
}
if err := client.Start(ctx); err != nil {
return err
}
defer client.StopAndCancel(ctx)
<-ctx.Done()
return nil
return client.Start(ctx)
}
func (q *Job) StopAndCancel(ctx context.Context) error {