From 76ad046777d4e9c643ccb6ea7ae67c5db09e06d8 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Fri, 11 Aug 2023 16:48:01 -1000 Subject: [PATCH] Fix format --- quickwit/quickwit-storage/src/cache_storage.rs | 3 +-- quickwit/quickwit-storage/src/storage.rs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/quickwit/quickwit-storage/src/cache_storage.rs b/quickwit/quickwit-storage/src/cache_storage.rs index b8807731244..96dc1d71ca8 100644 --- a/quickwit/quickwit-storage/src/cache_storage.rs +++ b/quickwit/quickwit-storage/src/cache_storage.rs @@ -92,8 +92,7 @@ impl Storage for CacheStorage { if let Some(split) = guard.get(split_id) { if matches!(split.0, SplitState::Ready) { // Only return cache if it is ready - // TODO: Ths - return self.cache.get_slice(path, range).await + return self.cache.get_slice(path, range).await; } } } diff --git a/quickwit/quickwit-storage/src/storage.rs b/quickwit/quickwit-storage/src/storage.rs index eea1a2ece70..954984e4a33 100644 --- a/quickwit/quickwit-storage/src/storage.rs +++ b/quickwit/quickwit-storage/src/storage.rs @@ -17,9 +17,10 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -use std::{fmt, sync::Arc}; +use std::fmt; use std::ops::Range; use std::path::Path; +use std::sync::Arc; use async_trait::async_trait; use quickwit_common::uri::Uri;