Skip to content

Commit

Permalink
always return path for volatir directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zaibon committed Mar 20, 2020
1 parent 66248f2 commit cdecb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func VolatileDir(name string, size uint64) (string, error) {
}

if err := os.Mkdir(name, 0700); err != nil {
return "", err
return name, err
}
return name, syscall.Mount("", name, "tmpfs", 0, fmt.Sprintf("size=%d", size))
}

0 comments on commit cdecb49

Please sign in to comment.