MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / init

Method init

crates/cargo-lambda-watch/src/state.rs:151–158  ·  view source on GitHub ↗
(&self, function_name: &str)

Source from the content-addressed store, hash-verified

149 }
150
151 pub async fn init(&self, function_name: &str) {
152 let mut inner = self.inner.write().await;
153 inner.insert(function_name.into(), RequestQueue::new());
154 debug!(
155 function_name,
156 "request stack initialized before compilation"
157 );
158 }
159
160 pub async fn upsert(&self, req: InvokeRequest) -> Result<Option<String>, ServerError> {
161 let mut inner = self.inner.write().await;

Callers 5

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
run_subcommandFunction · 0.80

Calls 2

newFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected