Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxa21 committed Nov 5, 2024
1 parent 577b57c commit e14485b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontend/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,13 +699,14 @@ impl SessionImpl {
notices: Default::default(),
exec_context: Mutex::new(None),
last_idle_instant: Default::default(),
cursor_manager: Arc::new(CursorManager::new(env.cursor_metrics.clone())),
cursor_manager: Arc::new(CursorManager::new(cursor_metrics)),
}
}

#[cfg(test)]
pub fn mock() -> Self {
let env = FrontendEnv::mock();
let cursor_metrics = env.cursor_metrics.clone();
Self {
env: FrontendEnv::mock(),
auth_context: Arc::new(AuthContext::new(
Expand All @@ -727,7 +728,7 @@ impl SessionImpl {
))
.into(),
last_idle_instant: Default::default(),
cursor_manager: Arc::new(CursorManager::new(env.cursor_metrics.clone())),
cursor_manager: Arc::new(CursorManager::new(cursor_metrics)),
}
}

Expand Down

0 comments on commit e14485b

Please sign in to comment.