From 148abe38f6e8a12349d39d74b80cfe819312ba60 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Mon, 29 Jul 2024 09:28:37 -0700 Subject: [PATCH] Add link to example in tests --- book/src/cycles/fallback.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/src/cycles/fallback.md b/book/src/cycles/fallback.md index 2509017..d3971ec 100644 --- a/book/src/cycles/fallback.md +++ b/book/src/cycles/fallback.md @@ -16,4 +16,6 @@ fn my_recover_fn( ) -> MyResultValue ``` +See [the tests](https://github.com/salsa-rs/salsa/blob/cd339fc1c9a6ea0ffb1d09bd3bffb5633f776ef3/tests/cycles.rs#L132-L141) for an example. + **Important:** Although the recovery function is given a `db` handle, you should be careful to avoid creating a cycle from within recovery or invoking queries that may be participating in the current cycle. Attempting to do so can result in inconsistent results.