We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8214eec commit e4f4be5Copy full SHA for e4f4be5
1 file changed
thoth-api/src/storage/mod.rs
@@ -276,17 +276,13 @@ pub fn build_cdn_url(cdn_domain: &str, object_key: &str) -> String {
276
pub(crate) mod tests {
277
use super::*;
278
use crate::model::Timestamp;
279
- use std::sync::{Mutex, MutexGuard};
+ use std::sync::Mutex;
280
use uuid::Uuid;
281
282
lazy_static::lazy_static! {
283
static ref ENV_LOCK: Mutex<()> = Mutex::new(());
284
}
285
286
- pub(crate) fn env_lock() -> MutexGuard<'static, ()> {
287
- ENV_LOCK.lock().unwrap()
288
- }
289
-
290
fn create_test_imprint_with_storage() -> Imprint {
291
Imprint {
292
imprint_id: Uuid::new_v4(),
0 commit comments