From 1030229cb6fc97f7c44f3da627c64aee06ddcc29 Mon Sep 17 00:00:00 2001 From: dtynn Date: Wed, 11 Dec 2019 10:25:48 +0800 Subject: [PATCH] use actual symlink flag --- lib/sectorbuilder/sectorbuilder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sectorbuilder/sectorbuilder.go b/lib/sectorbuilder/sectorbuilder.go index 319143785..84b505fce 100644 --- a/lib/sectorbuilder/sectorbuilder.go +++ b/lib/sectorbuilder/sectorbuilder.go @@ -692,15 +692,15 @@ func fallbackPostChallengeCount(sectors uint64) uint64 { } func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error { - if err := migrate(osb.cacheDir, sb.cacheDir, true); err != nil { + if err := migrate(osb.cacheDir, sb.cacheDir, symlink); err != nil { return err } - if err := migrate(osb.sealedDir, sb.sealedDir, true); err != nil { + if err := migrate(osb.sealedDir, sb.sealedDir, symlink); err != nil { return err } - if err := migrate(osb.stagedDir, sb.stagedDir, true); err != nil { + if err := migrate(osb.stagedDir, sb.stagedDir, symlink); err != nil { return err }