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

Function make_request

nodedb-test-support/src/tx_batch_helpers.rs:42–59  ·  view source on GitHub ↗
(plan: PhysicalPlan)

Source from the content-addressed store, hash-verified

40}
41
42pub fn make_request(plan: PhysicalPlan) -> Request {
43 Request {
44 request_id: RequestId::new(1),
45 tenant_id: TenantId::new(1),
46 database_id: nodedb::types::DatabaseId::DEFAULT,
47 vshard_id: VShardId::new(0),
48 plan,
49 deadline: Instant::now() + Duration::from_secs(5),
50 priority: Priority::Normal,
51 trace_id: nodedb_types::TraceId::ZERO,
52 consistency: ReadConsistency::Strong,
53 idempotency_key: None,
54 event_source: nodedb::event::EventSource::User,
55 user_roles: Vec::new(),
56 user_id: None,
57 statement_digest: None,
58 }
59}
60
61pub fn send_ok(
62 core: &mut CoreLoop,

Callers 2

send_okFunction · 0.70
send_rawFunction · 0.70

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected