Skip to content

Commit

Permalink
chore: remove unused dependency (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
callicles authored Dec 16, 2023
1 parent a16db31 commit e44096b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion apps/igloo-kit-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apps/igloo-kit-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ console = "0.15.7"
dialoguer = "0.10.4"
hyper = { version = "0.14", features = ["full"] }
notify = { version = "6.1.1", default-features = false, features = ["macos_kqueue"] }
reqwest = "0.11.18"
toml = "0.5.8"
serde = { version = "1.0", features = ["derive"] }
config = { version = "0.13.1", features = ["toml"] }
Expand Down
4 changes: 4 additions & 0 deletions apps/igloo-kit-cli/src/cli/routines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ use super::{display::show_message, CommandTerminal, Message, MessageType};
use crate::infrastructure::olap::clickhouse::config::ClickhouseConfig;
use crate::infrastructure::stream::redpanda::RedpandaConfig;
use crate::project::Project;
use log::info;

pub mod clean;
pub mod initialize;
Expand Down Expand Up @@ -229,6 +230,9 @@ pub async fn start_development_mode(
Arc::clone(&route_table),
clickhouse_config.clone(),
)?;

info!("Starting web server...");

web_server
.start(
term.clone(),
Expand Down
12 changes: 4 additions & 8 deletions apps/igloo-kit-cli/src/infrastructure/olap/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use std::fmt::{self};

use clickhouse::Client;
use log::debug;
use reqwest::Url;
use schema_ast::ast::FieldArity;
use serde::{Deserialize, Serialize};

Expand Down Expand Up @@ -207,13 +206,10 @@ pub struct ConfiguredDBClient {
pub fn create_client(clickhouse_config: ClickhouseConfig) -> ConfiguredDBClient {
ConfiguredDBClient {
client: Client::default()
.with_url(
Url::parse(&format!(
"http://{}:{}",
clickhouse_config.host, clickhouse_config.host_port
))
.unwrap(),
)
.with_url(&format!(
"http://{}:{}",
clickhouse_config.host, clickhouse_config.host_port
))
.with_user(clickhouse_config.user.to_string())
.with_password(clickhouse_config.password.to_string())
.with_database(clickhouse_config.db_name.to_string()),
Expand Down

0 comments on commit e44096b

Please sign in to comment.