Skip to content

Commit

Permalink
chore: fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Aug 27, 2024
1 parent 801e7f3 commit 78ce33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/cubesql/cubesql/src/sql/session_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl SessionManager {

let mut guard = self.sessions.write().await;

if guard.sessions.len() > self.server.config_obj.max_sessions() {
if guard.sessions.len() >= self.server.config_obj.max_sessions() {
return Err(CubeError::user(format!(
"Too many sessions, limit reached: {}",
self.server.config_obj.max_sessions()
Expand Down

0 comments on commit 78ce33b

Please sign in to comment.