collect all clients to one single folder (#119)

This commit is contained in:
Ting Sun
2023-04-14 18:47:10 +08:00
committed by GitHub
parent b1e365b62f
commit 79422c0714
11 changed files with 154 additions and 146 deletions

View File

@@ -1,4 +1,4 @@
use mini_redis::{client, DEFAULT_PORT};
use mini_redis::{clients::Client, DEFAULT_PORT};
use bytes::Bytes;
use clap::{Parser, Subcommand};
@@ -86,7 +86,7 @@ async fn main() -> mini_redis::Result<()> {
let addr = format!("{}:{}", cli.host, cli.port);
// Establish a connection
let mut client = client::connect(&addr).await?;
let mut client = Client::connect(&addr).await?;
// Process the requested command
match cli.command {