(ctx: &ReducerContext, arg: NonrepeatingTestArg)
| 255 | |
| 256 | #[spacetimedb::reducer] |
| 257 | pub fn nonrepeating_test(ctx: &ReducerContext, arg: NonrepeatingTestArg) { |
| 258 | let delta_time = ctx |
| 259 | .timestamp |
| 260 | .duration_since(arg.prev_time) |
| 261 | .expect("arg.prev_time is later than ctx.timestamp... huh?"); |
| 262 | log::trace!( |
| 263 | "This reducers runs only once, at Timestamp: {:?}, Delta time: {:?}", |
| 264 | ctx.timestamp, |
| 265 | delta_time |
| 266 | ); |
| 267 | } |
| 268 | |
| 269 | #[spacetimedb::reducer] |
| 270 | pub fn add(ctx: &ReducerContext, name: String, age: u8) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…