Skip to content

Commit

Permalink
docs: add coment about cached router
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Dec 19, 2024
1 parent a823143 commit 3bc3c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server_cached_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bc3c0f

Please sign in to comment.