Skip to content

Commit

Permalink
chore(proxy/backups): remove unused defer
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-f committed Nov 6, 2023
1 parent 5ca8506 commit 396a842
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions @xen-orchestra/proxy/app/mixins/backups.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { compose } from '@vates/compose'
import { createLogger } from '@xen-orchestra/log'
import { decorateMethodsWith } from '@vates/decorate-with'
import { deduped } from '@vates/disposable/deduped.js'
import { defer } from 'golike-defer'
import { DurablePartition } from '@xen-orchestra/backups/DurablePartition.mjs'
import { execFile } from 'child_process'
import { formatVmBackups } from '@xen-orchestra/backups/formatVmBackups.mjs'
Expand Down Expand Up @@ -192,7 +191,7 @@ export default class Backups {
},
],
importVmBackup: [
defer(async ($defer, { backupId, remote, srUuid, settings, streamLogs = false, xapi: xapiOpts }) => {
async ({ backupId, remote, srUuid, settings, streamLogs = false, xapi: xapiOpts }) => {
const {
dispose,
value: [adapter, xapi],
Expand Down Expand Up @@ -226,7 +225,7 @@ export default class Backups {
} finally {
await dispose()
}
}),
},
{
description: 'create a new VM from a backup',
params: {
Expand Down

0 comments on commit 396a842

Please sign in to comment.