We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e85d28 commit 7d71fb0Copy full SHA for 7d71fb0
pkg/roles/backup/api.go
@@ -19,14 +19,14 @@ type APIBackupStartInput struct {
19
func (r *Role) APIBackupStart() usecase.Interactor {
20
u := usecase.NewInteractor(func(ctx context.Context, input APIBackupStartInput, output *BackupStatus) error {
21
if input.Wait {
22
- o := r.SaveSnapshot(ctx)
+ o := r.SaveSnapshot(context.Background())
23
output.Duration = o.Duration
24
output.Error = o.Error
25
output.Filename = o.Filename
26
output.Size = o.Size
27
output.Status = o.Status
28
} else {
29
- go r.SaveSnapshot(ctx)
+ go r.SaveSnapshot(context.Background())
30
output.Status = BackupStatusStarted
31
}
32
return nil
0 commit comments