From d86aa1c9293bf47cbb226dc5fb9efda3bb36e611 Mon Sep 17 00:00:00 2001 From: Claas Date: Sat, 27 Apr 2024 20:41:01 +0200 Subject: [PATCH] Clean up --- README.md | 2 +- src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); } -- knotmirror 0.0.1