Fix undefined macro warn! on 32-bit
Compiling garage_db v0.8.2 (garage-0.8.2/src/db) error: cannot find macro `warn` in this scope --> src/db/lmdb_adapter.rs:352:2 | 352 | warn!("LMDB is not recommended on 32-bit systems, database size will be limited"); | ^^^^ | = help: consider importing this macro: tracing::warn = note: `warn` is in scope, but it is an attribute: `#[warn]` error: could not compile `garage_db` due to previous error
This commit is contained in:
parent
1ecd88c01f
commit
6d3ace1ea9
@ -349,6 +349,6 @@ pub fn recommended_map_size() -> usize {
|
|||||||
|
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(target_pointer_width = "32")]
|
||||||
pub fn recommended_map_size() -> usize {
|
pub fn recommended_map_size() -> usize {
|
||||||
warn!("LMDB is not recommended on 32-bit systems, database size will be limited");
|
tracing::warn!("LMDB is not recommended on 32-bit systems, database size will be limited");
|
||||||
1usize << 30
|
1usize << 30
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user