Skip to content

Commit 8752d5e

Browse files
Apply suggestions from code review
Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com>
1 parent 7d63dd4 commit 8752d5e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

components/spider-storage/src/state/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use crate::{
99
#[derive(thiserror::Error, Debug)]
1010
pub enum StorageServerError {
1111
#[error(transparent)]
12-
Internal(#[from] InternalError),
12+
CacheInternal(#[from] InternalError),
1313

1414
#[error(transparent)]
15-
StaleState(#[from] StaleStateError),
15+
CacheStaleState(#[from] StaleStateError),
1616

1717
#[error("stale session")]
1818
StaleSession,

components/spider-storage/src/state/job_cache.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use crate::{
1111

1212
/// An in-memory cache for job control blocks.
1313
///
14-
/// This type provides concurrent access to job control blocks via a `DashMap`.
15-
/// It is generic over the same type parameters as [`SharedJobControlBlock`].
14+
/// This type provides concurrent access to job control blocks via a `DashMap`. It is generic over
15+
/// the same type parameters as [`SharedJobControlBlock`].
1616
///
1717
/// # Type Parameters
1818
///
@@ -170,7 +170,7 @@ mod tests {
170170
struct MockDbConnector;
171171

172172
#[async_trait::async_trait]
173-
impl crate::db::InternalJobOrchestration for MockDbConnector {
173+
impl InternalJobOrchestration for MockDbConnector {
174174
async fn start(&self, _job_id: JobId) -> Result<(), crate::db::DbError> {
175175
Ok(())
176176
}

0 commit comments

Comments
 (0)