diff --git a/README.md b/README.md index 75a3aef..317efee 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ An example of how to out of HTML out of order streaming in Rust without any JavaScript using as few dependencies as possible. This is made possible by using declarative shadow DOM. -For a more in depth explanation of how this works, check out this [blog post](https://lamplightdev.com/blog/2024/01/10/streaming-html-out-of-order-without-javascript/) by @lamplightdev. +For a more in depth explanation of how this works, check out this [blog post](https://lamplightdev.com/blog/2024/01/10/streaming-html-out-of-order-without-javascript/) by [@lamplightdev](https://github.com/lamplightdev). diff --git a/src/main.rs b/src/main.rs index 36bb8fa..e958bc0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,13 @@ use std::convert::Infallible; -use tokio::sync::mpsc::{Sender, UnboundedSender}; +use tokio::sync::mpsc::UnboundedSender; use axum::{ response::{Html, IntoResponse}, routing::get, Router, }; -use tokio_stream::wrappers::{ReceiverStream, UnboundedReceiverStream}; +use tokio_stream::wrappers::UnboundedReceiverStream; #[tokio::main] async fn main() { @@ -102,7 +102,7 @@ async fn streamer(sender: UnboundedSender>) { // Close the document sender - .send(Ok("".to_string())) + .send(Ok("

Done 👍

".to_string())) .unwrap(); }