Use defaultExecTraceCacheSize in case env cannot be parsed
This commit is contained in:
parent
17505a0022
commit
2c98a187dd
@ -80,11 +80,11 @@ func init() {
|
|||||||
letc, err := strconv.Atoi(s)
|
letc, err := strconv.Atoi(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("failed to parse 'LOTUS_EXEC_TRACE_CACHE' env var: %s", err)
|
log.Errorf("failed to parse 'LOTUS_EXEC_TRACE_CACHE' env var: %s", err)
|
||||||
}
|
} else {
|
||||||
|
|
||||||
defaultExecTraceCacheSize = letc
|
defaultExecTraceCacheSize = letc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (m *migrationResultCache) Get(ctx context.Context, root cid.Cid) (cid.Cid, bool, error) {
|
func (m *migrationResultCache) Get(ctx context.Context, root cid.Cid) (cid.Cid, bool, error) {
|
||||||
k := m.keyForMigration(root)
|
k := m.keyForMigration(root)
|
||||||
|
Loading…
Reference in New Issue
Block a user