(ctx context.Context)
| 832 | } |
| 833 | |
| 834 | func waitForFile(ctx context.Context) error { |
| 835 | for { |
| 836 | ff, err := localClient.AwaitWaitingFiles(ctx, time.Hour) |
| 837 | if len(ff) > 0 { |
| 838 | return nil |
| 839 | } |
| 840 | if err := ctx.Err(); err != nil { |
| 841 | return err |
| 842 | } |
| 843 | if err != nil && !errors.Is(err, context.DeadlineExceeded) && !errors.Is(err, context.Canceled) { |
| 844 | return err |
| 845 | } |
| 846 | } |
| 847 | } |
no test coverage detected
searching dependent graphs…