From a5c3211c7c394be6940dc7c86736a360fa98d5d5 Mon Sep 17 00:00:00 2001 From: Wade Cheng <86323079+wade-cheng@users.noreply.github.com> Date: Thu, 7 May 2026 18:01:37 -0400 Subject: [PATCH] fix: section headers in writing-a-protocol.mdx There probably shouldn't be a h1 here. --- protocols/writing-a-protocol.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/writing-a-protocol.mdx b/protocols/writing-a-protocol.mdx index 1f00720..dad9a1e 100644 --- a/protocols/writing-a-protocol.mdx +++ b/protocols/writing-a-protocol.mdx @@ -235,9 +235,9 @@ Copied over 13 byte(s) You can find all of the code in the [`echo.rs` example] in the iroh repo. -# Appendix +## Appendix -## No router no problem +### No router no problem The router can make writing code with iroh easier, but it's not required. If the [`Router` API][router API] is too limited or perhaps too complex for your use case, it's fairly simple to replace with your own accept loop based on only `iroh::Endpoint` APIs. @@ -294,7 +294,7 @@ We could even inline the whole function call instead. You can see a version of the echo example completely without using a router or protocol handler trait in the [`echo-no-router.rs` example]. -## General Guidance +### General Guidance The echo example is a very simple protocol. There's many ways in which a protocol in practice is going to be more complex. @@ -329,4 +329,4 @@ Have fun. [closing connections]: https://www.iroh.computer/blog/closing-a-quic-connection [`echo.rs` example]: https://github.com/n0-computer/iroh/blob/main/iroh/examples/echo.rs [`echo-no-router.rs` example]: https://github.com/n0-computer/iroh/blob/main/iroh/examples/echo-no-router.rs -[iroh discord]: https://iroh.computer/discord \ No newline at end of file +[iroh discord]: https://iroh.computer/discord