mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
fix: use unwrap_or_else for lazy evaluation of StorageSettings::legacy (#21332)
This commit is contained in:
committed by
GitHub
parent
da12451c9c
commit
28a31cd579
@@ -162,7 +162,7 @@ where
|
||||
return Err(InitStorageError::UninitializedDatabase)
|
||||
}
|
||||
|
||||
let stored = factory.storage_settings()?.unwrap_or(StorageSettings::legacy());
|
||||
let stored = factory.storage_settings()?.unwrap_or_else(StorageSettings::legacy);
|
||||
if stored != genesis_storage_settings {
|
||||
warn!(
|
||||
target: "reth::storage",
|
||||
|
||||
Reference in New Issue
Block a user