lotus-provider: Ensure tempdir exists on startup

This commit is contained in:
Łukasz Magiera 2024-02-16 14:31:13 +01:00
parent 55a50727fa
commit f6dc31354e

View File

@ -78,6 +78,10 @@ var runCmd = &cli.Command{
}
}
if err := os.MkdirAll(os.TempDir(), 0755); err != nil {
log.Errorf("ensuring tempdir exists: %s", err)
}
ctx, _ := tag.New(lcli.DaemonContext(cctx),
tag.Insert(metrics.Version, build.BuildVersion),
tag.Insert(metrics.Commit, build.CurrentCommit),