Skip to content
1 viewer

rust 1,863,570 · typescript 235,774 · javascript 133,240 · python 20,426 · 6,417 files · digest 4f6c7cd6c249 · built in 1.9 s · crystals off

try_attribute

cre8_app_referral::attribution::try_attribute

fn · cre8-app-referral · crates/cre8-app-referral/src/attribution.rs:52

71lines
15cyclomatic
2max nesting
25statements
6? exits
2params
1callers
10callees
1.4 (p89)call-graph weight

Crystal

no crystal was derived for this function

Call neighbourhood

Callers left, callees right, two hops each way (1 direct callers, 10 direct callees; the heaviest shown). Dashed edges are method calls resolved by name alone.

path · 1 sitepath · 2 sitespath · 1 sitepath · 5 sitespath · 2 sitespath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitename · 1 sitepath · 1 sitepath · 1 sitemethod · 1 sitemethod · 1 sitepath · 1 sitepath · 2 sitespath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitename · 1 sitepath · 3 sitesname · 1 sitepath · 1 sitemethod · 6 sitesmethod · 3 sitesname · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 sitepath · 1 siteattribute_order_referralapp-shop · cc 2cre8_app_shop::connection::attribute_order_referralan_explicit_code_on_a_paid_…app-referral · cc 1cre8_app_referral::tests::an_explicit_code_on_a_paid_sale_earns_the_partner_their_rate_oncea_signed_in_click_binds_the…app-referral · cc 2cre8_app_referral::tests::a_signed_in_click_binds_the_buyer_so_a_later_sale_is_attributedrefusals_self_referral_fore…app-referral · cc 1cre8_app_referral::tests::refusals_self_referral_foreign_merchant_scope_and_paused_codesa_refund_reverses_a_pending…app-referral · cc 1cre8_app_referral::tests::a_refund_reverses_a_pending_commission_and_payouts_take_only_what_is_payablea_commission_inside_its_hol…app-referral · cc 1cre8_app_referral::tests::a_commission_inside_its_hold_is_not_payablepartners_see_their_commissi…app-referral · cc 1cre8_app_referral::tests::partners_see_their_commissions_without_the_buyerattribute_paid_saleapp-referral · cc 2cre8_app_referral::attribution::attribute_paid_saletry_attributeapp-referral · cc 15cre8_app_referral::attribution::try_attributewith_graph_mutapp-protocol · cc 9cre8_app_protocol::graph_store::with_graph_mutnow_ms_i64platform-time · cc 1cre8_platform_time::now_ms_i64commission_minorapp-referral · cc 3cre8_app_referral::model::commission_minorload_partner_by_codeapp-referral · cc 1cre8_app_referral::model::load_partner_by_codeReferralPartner::is_activeapp-referral · cc 1cre8_app_referral::model::ReferralPartner::is_activederive_commission_idapp-referral · cc 1cre8_app_referral::model::derive_commission_idupsert_commissionapp-referral · cc 1cre8_app_referral::model::upsert_commissionload_commissionapp-referral · cc 1cre8_app_referral::model::load_commissionReferralBinding::is_liveapp-referral · cc 1cre8_app_referral::model::ReferralBinding::is_liveload_bindingapp-referral · cc 1cre8_app_referral::model::load_bindingnow_msplatform-time · cc 1cre8_platform_time::now_msMutex::lock_or_recoverutil-lock-ext · cc 2cre8_util_lock_ext::Mutex::lock_or_recovershort_hashutil-graph-vertex · cc 1cre8_util_graph_vertex::short_hashHoldingProtocolStore::enterapp-protocol · cc 1cre8_app_protocol::graph_store::HoldingProtocolStore::entervidutil-graph-vertex · cc 1cre8_util_graph_vertex::vidopen_protocol_graphapp-protocol · cc 1cre8_app_protocol::graph_store::open_protocol_graphambient_protocol_storeapp-protocol · cc 1cre8_app_protocol::graph_store::ambient::ambient_protocol_storelive_protocol_store_for_fal…app-protocol · cc 2cre8_app_protocol::graph_store::live_protocol_store_for_fallbackHyperDbProtocolStore::graph…app-protocol · cc 1cre8_app_protocol::store_adapter::HyperDbProtocolStore::graph_mutload_vertexutil-graph-vertex · cc 1cre8_util_graph_vertex::load_vertex

Control flow

Source not readable from this process.

Callers 1

Callees 10

Source not readable from this process.