(key: String, value: T)
| 49 | |
| 50 | #[tracing::instrument(level = "debug", skip(key, value))] |
| 51 | pub fn save_selective<T>(key: String, value: T) |
| 52 | where |
| 53 | T: Serialize + 'static, |
| 54 | { |
| 55 | spawn_local(async move { |
| 56 | let res = super::invoke::save_selective(key.clone(), Some(value)).await; |
| 57 | if let Err(e) = res { |
| 58 | tracing::error!("Error saving selective {}: {:?}", key, e); |
| 59 | } |
| 60 | }); |
| 61 | } |
| 62 | |
| 63 | #[tracing::instrument(level = "debug", skip(key))] |
| 64 | #[cfg(feature = "mock")] |
no test coverage detected