Skip to content

Commit

Permalink
chore(cli): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 2, 2025
1 parent 6f83f66 commit 4fe1025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ttc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ RUN cargo build --bin ttc-server --package databend-ttc --release
RUN cp /usr/src/target/release/ttc-server /usr/local/bin/ttc-server

# Set the startup command
# docker run --net host datafuselabs/ttc-rust -P 9901 --databend_dsn databend://default:@127.0.0.1:8000
# docker run --net host datafuselabs/ttc-rust -P 9092 --databend_dsn databend://default:@127.0.0.1:8000
CMD ["ttc-server"]
2 changes: 1 addition & 1 deletion ttc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use tokio::net::TcpStream;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Connect to the server
let mut stream = TcpStream::connect("127.0.0.1:9901").await?;
let mut stream = TcpStream::connect("127.0.0.1:9092").await?;

loop {
// Prepare a sql
Expand Down
2 changes: 1 addition & 1 deletion ttc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use clap::{command, Parser};
#[derive(Debug, Clone, Parser, PartialEq)]
#[command(name = "ttc")]
struct Config {
#[clap(short = 'P', default_value = "9901", env = "TTC_PORT", long)]
#[clap(short = 'P', default_value = "9092", env = "TTC_PORT", long)]
port: u16,
#[clap(
long,
Expand Down

0 comments on commit 4fe1025

Please sign in to comment.