MCPcopy Create free account
hub / github.com/actix/examples / an_expensive_function

Function an_expensive_function

cache/redis/src/main.rs:24–27  ·  view source on GitHub ↗
(n: web::Path<u64>)

Source from the content-addressed store, hash-verified

22}
23
24async fn an_expensive_function(n: web::Path<u64>) -> impl Responder {
25 let result = fib_recursive(n.to_owned());
26 HttpResponse::Ok().body(result.to_string())
27}
28
29#[actix_web::main]
30async fn main() -> std::result::Result<(), std::io::Error> {

Callers

nothing calls this directly

Calls 1

fib_recursiveFunction · 0.85

Tested by

no test coverage detected