MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / make_req

Function make_req

nodedb/tests/cross_engine_bitmap_currency.rs:58–75  ·  view source on GitHub ↗
(plan: PhysicalPlan)

Source from the content-addressed store, hash-verified

56}
57
58fn make_req(plan: PhysicalPlan) -> Request {
59 Request {
60 request_id: RequestId::new(1),
61 tenant_id: TenantId::new(1),
62 vshard_id: VShardId::new(0),
63 database_id: nodedb::types::DatabaseId::DEFAULT,
64 plan,
65 deadline: Instant::now() + Duration::from_secs(5),
66 priority: Priority::Normal,
67 trace_id: nodedb_types::TraceId::ZERO,
68 consistency: ReadConsistency::Strong,
69 idempotency_key: None,
70 event_source: nodedb::event::EventSource::User,
71 user_roles: Vec::new(),
72 user_id: None,
73 statement_digest: None,
74 }
75}
76
77/// Push a plan, tick, pop response, assert `Ok`.
78fn send_ok(

Callers 2

send_okFunction · 0.70

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected