Improve /node api endpoint response time
Work around an issue where radicle-node takes a long time to respond to status and config requests blocking the UI because we use the node avatar from the config in almost all layouts.
1 file changed
+65
-10
d4eeccb9
→
7dd70638
modified radicle-httpd/src/api/v1/node.rs
@@ -4,6 +4,7 @@ use axum::routing::get;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -17,6 +18,8 @@ use crate::api::error::Error;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -68,22 +71,46 @@ impl Response {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -298,4 +325,32 @@ mod routes {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|