Skip to content

Commit 2985a10

Browse files
committed
graph: Introduce a StoreResult
1 parent a10ac6d commit 2985a10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

graph/src/components/store/err.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use diesel::result::Error as DieselError;
77
use thiserror::Error;
88
use tokio::task::JoinError;
99

10+
pub type StoreResult<T> = Result<T, StoreError>;
11+
1012
#[derive(Error, Debug)]
1113
pub enum StoreError {
1214
#[error("store error: {0:#}")]

graph/src/components/store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use entity_cache::{EntityCache, EntityLfuCache, GetScope, ModificationsAndCa
1212
use slog::Logger;
1313

1414
pub use super::subgraph::Entity;
15-
pub use err::StoreError;
15+
pub use err::{StoreError, StoreResult};
1616
use itertools::Itertools;
1717
use strum_macros::Display;
1818
pub use traits::*;

0 commit comments

Comments
 (0)