Skip to content

Commit 8ac86d9

Browse files
committedApr 19, 2024·
fix: add retries to repo deletion because windows
1 parent fdd7a6c commit 8ac86d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/kubo/daemon.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export default class KuboDaemon implements KuboNode {
103103
try {
104104
await fs.rm(this.repo, {
105105
recursive: true,
106-
force: true
106+
force: true,
107+
maxRetries: 10
107108
})
108109
} catch (err: any) {
109110
if (err.code !== 'EPERM') {

0 commit comments

Comments
 (0)
Please sign in to comment.