Skip to content

Commit

Permalink
Warning for attempting to work through the text protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
suharev7 committed Nov 5, 2023
1 parent b1f627b commit 069d8ca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
};

use futures_util::future::BoxFuture;
use log::error;
use log::{error, warn};

use crate::{
errors::Result,
Expand Down Expand Up @@ -149,6 +149,15 @@ impl Pool {
Err(err) => error!("{}", err),
}

for host in &hosts {
if host.port() == Some(8124) {

This comment has been minimized.

Copy link
@azat

azat Nov 28, 2023

Contributor

Default port is 8123.

This comment has been minimized.

Copy link
@suharev7

suharev7 Nov 28, 2023

Author Owner

Yes, thanks

warn!(
"The attempt to establish a connection through the text protocol. clickhouse-rs is for using the binary protocol."
);
break;
}
}

let inner = Arc::new(Inner {
new: crossbeam::queue::ArrayQueue::new(1),
idle: crossbeam::queue::ArrayQueue::new(max),
Expand Down

0 comments on commit 069d8ca

Please sign in to comment.