async memory_grow_failed can have a default impl
idk why this didnt work in the old factoring! but im glad it does
This commit is contained in:
@@ -104,7 +104,7 @@ pub trait ResourceLimiterAsync {
|
|||||||
) -> bool;
|
) -> bool;
|
||||||
|
|
||||||
/// Identical to [`ResourceLimiter::memory_grow_failed`]
|
/// Identical to [`ResourceLimiter::memory_grow_failed`]
|
||||||
fn memory_grow_failed(&mut self, error: &anyhow::Error);
|
fn memory_grow_failed(&mut self, _error: &anyhow::Error) {}
|
||||||
|
|
||||||
/// Asynchronous version of [`ResourceLimiter::table_growing`]
|
/// Asynchronous version of [`ResourceLimiter::table_growing`]
|
||||||
async fn table_growing(&mut self, current: u32, desired: u32, maximum: Option<u32>) -> bool;
|
async fn table_growing(&mut self, current: u32, desired: u32, maximum: Option<u32>) -> bool;
|
||||||
|
|||||||
Reference in New Issue
Block a user