MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / empty_transaction

Method empty_transaction

crates/bench/src/spacetime_module.rs:139–146  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

137 }
138
139 fn empty_transaction(&mut self) -> ResultBench<()> {
140 let SpacetimeModule { runtime, module, .. } = self;
141
142 runtime.block_on(async move {
143 module.call_reducer_binary("empty", &[].into()).await?;
144 Ok(())
145 })
146 }
147
148 fn insert_bulk<T: BenchTable>(&mut self, table_id: &Self::TableId, rows: Vec<T>) -> ResultBench<()> {
149 let rows = rows.into_iter().map(|row| row.into_product_value()).collect();

Callers

nothing calls this directly

Calls 3

call_reducer_binaryMethod · 0.80
OkFunction · 0.50
block_onMethod · 0.45

Tested by

no test coverage detected