Skip to content

Commit

Permalink
Fix error in validate connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamdavidonuh committed Sep 27, 2024
1 parent 4d53db4 commit 93f36f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ahnlich/cli/src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ impl AgentPool {
.map_err(|err| err.to_string())?;
if let ServerResponse::InfoServer(server_details) = result {
match server_details.r#type {
ServerType::AI => return Ok(true),
ServerType::Database => return Ok(false),
ServerType::AI => return Ok(false),
ServerType::Database => return Ok(true),
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion ahnlich/cli/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ impl Term {
pub fn welcome_message(&self) -> io::Result<()> {
let mut stdout = stdout();
stdout.execute(SetForegroundColor(Color::White))?;
stdout.execute(Print(format!("Welcome To Ahnlich {}", self.client_pool)))?;
stdout.execute(Print(format!(
"Welcome To Ahnlich {}\n\n",
self.client_pool
)))?;
stdout.execute(SetForegroundColor(Color::White))?;
stdout.flush()?;
stdout.flush()?;
Expand Down

0 comments on commit 93f36f7

Please sign in to comment.