diff --git a/chain/consensus/filcns/upgrades.go b/chain/consensus/filcns/upgrades.go index a353faa2b8..cf472491cf 100644 --- a/chain/consensus/filcns/upgrades.go +++ b/chain/consensus/filcns/upgrades.go @@ -2754,9 +2754,9 @@ func PreUpgradeActorsV16(ctx context.Context, sm *stmgr.StateManager, cache stmg return xerrors.Errorf("error getting lookback ts for premigration: %w", err) } - timeoutDuration, err := getMigrationProgressLogTimeout() + timeoutDuration, err := getMigrationProgressLogPeriod() if err != nil { - return xerrors.Errorf("error getting progress log timeout: %w", err) + return xerrors.Errorf("error getting progress log period: %w", err) } config := migration.Config{ @@ -2776,9 +2776,9 @@ func UpgradeActorsV16(ctx context.Context, sm *stmgr.StateManager, cache stmgr.M workerCount = 1 } - timeoutDuration, err := getMigrationProgressLogTimeout() + timeoutDuration, err := getMigrationProgressLogPeriod() if err != nil { - return cid.Undef, xerrors.Errorf("error getting progress log timeout: %w", err) + return cid.Undef, xerrors.Errorf("error getting progress log period: %w", err) } config := migration.Config{ @@ -3017,7 +3017,7 @@ func (ml migrationLogger) Log(level rt.LogLevel, msg string, args ...interface{} } } -func getMigrationProgressLogTimeout() (time.Duration, error) { +func getMigrationProgressLogPeriod() (time.Duration, error) { timeoutDuration := time.Second * 2 // default timeout timeout := os.Getenv("LOTUS_MIGRATE_PROGRESS_LOG_SECONDS") if timeout != "" { diff --git a/documentation/misc/Building_a_network_skeleton.md b/documentation/misc/Building_a_network_skeleton.md index cc2d868201..4fa8647d5b 100644 --- a/documentation/misc/Building_a_network_skeleton.md +++ b/documentation/misc/Building_a_network_skeleton.md @@ -456,9 +456,9 @@ Typically it's safe to not upgrade filecoin-ffi's version of go-state-types. Th return xerrors.Errorf("error getting lookback ts for premigration: %w", err) } - timeoutDuration, err := getMigrationProgressLogTimeout() + timeoutDuration, err := getMigrationProgressLogPeriod() if err != nil { - return xerrors.Errorf("error getting progress log timeout: %w", err) + return xerrors.Errorf("error getting progress log period: %w", err) } config := migration.Config{ @@ -478,9 +478,9 @@ Typically it's safe to not upgrade filecoin-ffi's version of go-state-types. Th workerCount = 1 } - timeoutDuration, err := getMigrationProgressLogTimeout() + timeoutDuration, err := getMigrationProgressLogPeriod() if err != nil { - return cid.Undef, xerrors.Errorf("error getting progress log timeout: %w", err) + return cid.Undef, xerrors.Errorf("error getting progress log period: %w", err) } config := migration.Config{