We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a0cd6 commit 48fd787Copy full SHA for 48fd787
docs/cookbook/src/crates/rustapi_extras.md
@@ -98,11 +98,12 @@ rustapi-extras = { version = "0.1.233", features = ["insight"] }
98
use rustapi_extras::insight::{InsightLayer, InMemoryInsightStore, InsightConfig};
99
use std::sync::Arc;
100
101
-let store = Arc::new(InMemoryInsightStore::new());
+let store = Arc::new(InMemoryInsightStore::new(InMemoryInsightStore::default_capacity()));
102
let config = InsightConfig::default();
103
104
let app = RustApi::new()
105
- .layer(InsightLayer::new(config, store.clone()));
+ .state(store.clone())
106
+ .layer(InsightLayer::with_config(config).with_store(store.clone()));
107
```
108
109
### Accessing Data
0 commit comments