start replacing engine
Some checks reported errors
Albatros default

This commit is contained in:
Quentin 2023-11-02 10:55:40 +01:00
parent 73a6a0c014
commit 1f28832dea
Signed by: quentin
GPG key ID: E9602264D639FF68
4 changed files with 6 additions and 6 deletions

View file

@ -109,8 +109,8 @@ impl Region {
impl Credentials {
pub fn k2v_client(&self) -> Result<K2vClient> {
self.storage.k2v_client()
pub fn k2v_client(&self) -> Result<RowStore, Error> {
self.storage.row.row_store()
}
pub fn s3_client(&self) -> Result<S3Client> {
self.storage.s3_client()

View file

@ -7,7 +7,7 @@ pub struct GrgRef {}
pub struct GrgValue {}
impl IRowBuilder for GrgCreds {
fn row_store(&self) -> RowStore {
fn row_store(&self) -> Result<RowStore, Error> {
unimplemented!();
}
}

View file

@ -8,7 +8,7 @@ pub struct MemRef {}
pub struct MemValue {}
impl IRowBuilder for MemCreds {
fn row_store(&self) -> RowStore {
fn row_store(&self) -> Result<RowStore, Error> {
unimplemented!();
}
}

View file

@ -54,7 +54,7 @@ pub type AsyncResult<'a, T> = BoxFuture<'a, Result<T, Error>>;
// ------ Row Builder
pub trait IRowBuilder
{
fn row_store(&self) -> RowStore;
fn row_store(&self) -> Result<RowStore, Error>;
}
pub type RowBuilder = Box<dyn IRowBuilder + Send + Sync>;
@ -63,7 +63,7 @@ pub trait IRowStore
{
fn new_row(&self, partition: &str, sort: &str) -> RowRef;
}
type RowStore = Box<dyn IRowStore>;
pub type RowStore = Box<dyn IRowStore>;
// ------- Row Item
pub trait IRowRef