Skip to content

Commit

Permalink
fix: add retries to repo deletion because windows
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Apr 19, 2024
1 parent fdd7a6c commit 8ac86d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kubo/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export default class KuboDaemon implements KuboNode {
try {
await fs.rm(this.repo, {
recursive: true,
force: true
force: true,
maxRetries: 10
})
} catch (err: any) {
if (err.code !== 'EPERM') {
Expand Down

0 comments on commit 8ac86d9

Please sign in to comment.