Use defaultExecTraceCacheSize in case env cannot be parsed

This commit is contained in:
Fridrik Asmundsson 2023-03-29 17:30:00 +02:00
parent 17505a0022
commit 2c98a187dd

View File

@ -80,10 +80,10 @@ func init() {
letc, err := strconv.Atoi(s)
if err != nil {
log.Errorf("failed to parse 'LOTUS_EXEC_TRACE_CACHE' env var: %s", err)
}
} else {
defaultExecTraceCacheSize = letc
}
}
}
func (m *migrationResultCache) Get(ctx context.Context, root cid.Cid) (cid.Cid, bool, error) {