From 3bc3c0fc597084f87703b2d1eeaf3f05a00b4c35 Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:14:36 +0100 Subject: [PATCH] docs: add coment about cached router --- server_cached_router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server_cached_router.go b/server_cached_router.go index b43b5a8..5480a28 100644 --- a/server_cached_router.go +++ b/server_cached_router.go @@ -48,6 +48,7 @@ const ( ) // cachedRouter wraps a router with the cachedAddrBook to retrieve cached addresses for peers without multiaddrs in FindProviders +// it will also dispatch a FindPeer when a provider has no multiaddrs using the cacheFallbackIter type cachedRouter struct { router cachedAddrBook *cachedAddrBook