Use the real structure with Server-Broker-Client instead of Client-Server-Requester previously used in Bonk v1
This commit is contained in:
@@ -16,6 +16,7 @@ enum ClientMessage {
|
||||
NotRequired { id: String },
|
||||
}
|
||||
|
||||
// TODO: This is an old examples
|
||||
#[tokio::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
let client_name = "Polnareffland1";
|
||||
@@ -36,7 +37,7 @@ async fn main() -> std::io::Result<()> {
|
||||
let connector = TlsConnector::from(Arc::new(tlsconfig));
|
||||
let dnsname = ServerName::try_from("localhost").unwrap();
|
||||
|
||||
let stream = TcpStream::connect("localhost:6379").await?;
|
||||
let stream = TcpStream::connect("localhost:2541").await?;
|
||||
let stream = connector.connect(dnsname, stream).await?;
|
||||
|
||||
let mut transport = Framed::new(stream, LengthDelimitedCodec::new());
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#[tokio::main]
|
||||
async fn main() {}
|
||||
Reference in New Issue
Block a user