From 2c98a187dd2876175ef99735f74f77a4e60eb9be Mon Sep 17 00:00:00 2001 From: Fridrik Asmundsson Date: Wed, 29 Mar 2023 17:30:00 +0200 Subject: [PATCH] Use defaultExecTraceCacheSize in case env cannot be parsed --- chain/stmgr/stmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/stmgr/stmgr.go b/chain/stmgr/stmgr.go index aaebfcbe8..224c63ddb 100644 --- a/chain/stmgr/stmgr.go +++ b/chain/stmgr/stmgr.go @@ -80,9 +80,9 @@ 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 } - - defaultExecTraceCacheSize = letc } }