Skip to content

Commit

Permalink
fix(docs): erroneous docs (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbraun96 authored Nov 29, 2024
1 parent d054a48 commit 5cc8dd4
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,18 @@ use futures::StreamExt;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client_kernel = SingleClientServerConnectionKernel::new_register_defaults(
"John Doe",
"john.doe",
"password",
"127.0.0.1:25021",
// Create server connection settings
let server_connection_settings = ServerConnectionSettingsBuilder::credentialed_registration(
"127.0.0.1:12345",
"my_username",
"My Name",
"notsecurepassword",
)
.build()?;

// Create client kernel
let kernel = SingleClientServerConnectionKernel::new(
server_connection_settings,
|connect_success, remote| async move {
let (sink, mut stream) = connect_success.channel.split();
while let Some(message) = stream.next().await {
Expand All @@ -148,8 +155,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
)?;

let client = NodeBuilder::default().build(client_kernel)?;
client.await?;
// Execute the application
NodeBuilder::default().build(client_kernel)?.await?;
Ok(())
}
```
Expand Down Expand Up @@ -296,7 +303,7 @@ The Citadel Protocol offers flexible data persistence options to suit various de

- [📖 SDK Documentation](https://avarok-cybersecurity.github.io/Citadel-Protocol/docs/)
- [📚 API Reference](https://docs.rs/citadel_sdk)
- [📁 Examples](./examples/README.md)
- [📁 Examples](./example-library/README.md)
- [📄 Technical Architecture](The_Citadel_Protocol.pdf)

## 📜 Patent and Open Source Commitment
Expand Down

0 comments on commit 5cc8dd4

Please sign in to comment.