mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-05-25 06:20:44 +00:00
remove unused module
This commit is contained in:
libsql-wal/src/storage
@ -10,7 +10,6 @@ use crate::segment::{sealed::SealedSegment, Segment};
|
||||
pub use self::error::Error;
|
||||
|
||||
mod job;
|
||||
// mod restore;
|
||||
pub mod async_storage;
|
||||
pub mod backend;
|
||||
pub(crate) mod error;
|
||||
|
@ -1,30 +0,0 @@
|
||||
use chrono::{DateTime, Utc};
|
||||
use tokio::io::AsyncWrite;
|
||||
|
||||
use super::backend::Backend;
|
||||
use super::Result;
|
||||
use libsql_sys::name::NamespaceName;
|
||||
|
||||
/// Restore a Namespace from bottomless
|
||||
pub struct BottomlessRestore<C> {
|
||||
config: C,
|
||||
namespace: NamespaceName,
|
||||
before: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
impl<C> BottomlessRestore<C> {
|
||||
pub fn new(config: C, namespace: NamespaceName, before: Option<DateTime<Utc>>) -> Self {
|
||||
Self {
|
||||
config,
|
||||
namespace,
|
||||
before,
|
||||
}
|
||||
}
|
||||
|
||||
fn restore<S>(self, _storage: S, _dest: impl AsyncWrite) -> Result<()>
|
||||
where
|
||||
S: Backend<Config = C>,
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user