We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1e329 commit 9dfe7ceCopy full SHA for 9dfe7ce
mithril-common/src/resource_pool.rs
@@ -231,6 +231,7 @@ mod tests {
231
let mut resources_items = vec![];
232
for _ in 0..pool_size {
233
let resource_item = pool.acquire_resource(Duration::from_millis(10)).unwrap();
234
+ // The resource is stored in a list to avoid it being dropped when exiting this block scope
235
resources_items.push(resource_item);
236
}
237
0 commit comments