1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-compute-core/src/discovery.rs
Items
struct PeerInfo struct DiscoveryStats struct PeerDiscovery impl PeerDiscovery static DISC
Functions
By call-graph weight (PageRank; 1.0 is the average function). 59 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| now_unixsrc/discovery.rs:513 | fn | 3 | 1 | 11 | 1 | 7.1 | |
| PeerDiscovery::newsrc/discovery.rs:98 | method | 3 | 1 | 15 | 0 | 5.4 | |
| global_discoverysrc/discovery.rs:227 | fn | 28 | 1 | 16 | 1 | 3.8 | |
| make_peersrc/discovery.rs:523 | fn | 22 | 1 | 17 | 1 | 3.6 | |
| make_localsrc/discovery.rs:546 | fn | 3 | 1 | 21 | 1 | 2.2 | |
| PeerDiscovery::registersrc/discovery.rs:109 | method | 6 | 2 | 17 | 0 | 2.1 | |
| handle_discoversrc/discovery.rs:270 | fn | 56 | 4 | 4 | 3 | 1.5 | |
| init_global_discoverysrc/discovery.rs:259 | fn | 6 | 2 | 10 | 2 | 1.3 | |
| PeerDiscovery::merge_gossipsrc/discovery.rs:158 | method | 15 | 5 | 5 | 0 | 1.2 | |
| PeerDiscovery::gossip_payloadsrc/discovery.rs:139 | method | 15 | 3 | 4 | 1 | 1.2 | |
| handle_gossip_exchangesrc/discovery.rs:374 | fn | 14 | 1 | 2 | 3 | 1.1 | |
| PeerDiscovery::sync_to_contextsrc/discovery.rs:181 | method | 7 | 4 | 2 | 0 | 1 | |
| sync_discovery_to_peer_endpointssrc/discovery.rs:505 | fn | 5 | 2 | 2 | 2 | 1 | |
| PeerDiscovery::peer_mutsrc/discovery.rs:212 | method | 3 | 1 | 3 | 0 | 0.9 | |
| PeerDiscovery::evict_stalesrc/discovery.rs:117 | method | 4 | 1 | 3 | 1 | 0.9 | |
| PeerDiscovery::peer_idssrc/discovery.rs:217 | method | 3 | 1 | 2 | 0 | 0.9 | |
| PeerDiscovery::healthy_peerssrc/discovery.rs:123 | method | 3 | 1 | 2 | 0 | 0.9 | |
| PeerDiscovery::statssrc/discovery.rs:190 | method | 10 | 1 | 2 | 1 | 0.8 | |
| PeerDiscovery::endpoint_forsrc/discovery.rs:175 | method | 3 | 1 | 5 | 0 | 0.8 | |
| healthy_gossip_targetssrc/discovery.rs:435 | fn | 15 | 3 | 2 | 2 | 0.8 | |
| post_gossipsrc/discovery.rs:478 | fn | 13 | 2 | 2 | 7 | 0.7 | |
| bootstrap_discoverysrc/discovery.rs:394 | fn | 26 | 3 | 3 | 6 | 0.7 | |
| evict_stale_peerssrc/discovery.rs:429 | fn | 5 | 2 | 2 | 2 | 0.7 | |
| gossip_payload_and_targetssrc/discovery.rs:451 | fn | 4 | 1 | 2 | 3 | 0.7 | |
| PeerDiscovery::with_ttlsrc/discovery.rs:103 | method | 4 | 1 | 3 | 0 | 0.7 | |
| gossip_ticksrc/discovery.rs:492 | fn | 10 | 2 | 3 | 3 | 0.6 | |
| mark_peer_unhealthysrc/discovery.rs:456 | fn | 6 | 2 | 2 | 2 | 0.6 | |
| merge_gossip_responsesrc/discovery.rs:463 | fn | 14 | 2 | 2 | 4 | 0.6 | |
| spawn_json_serversrc/discovery.rs:550 | fn | 24 | 2 | 2 | 1 | 0.6 | |
| handle_peers_listsrc/discovery.rs:328 | fn | 42 | 1 | 1 | 2 | 0.6 | |
| PeerDiscovery::peers_for_languagesrc/discovery.rs:133 | method | 3 | 2 | 1 | 0 | 0.6 | |
| PeerDiscovery::peers_with_gpusrc/discovery.rs:128 | method | 3 | 2 | 1 | 0 | 0.5 | |
| PeerDiscovery::seedssrc/discovery.rs:202 | method | 3 | 1 | 1 | 0 | 0.5 | |
| PeerDiscovery::local_infosrc/discovery.rs:207 | method | 3 | 1 | 1 | 0 | 0.5 | |
| test_register_and_lookupsrc/discovery.rs:576 | fn | 8 | 1 | 0 | 5 | 0.5 | |
| test_register_skips_selfsrc/discovery.rs:586 | fn | 6 | 1 | 0 | 3 | 0.5 | |
| test_evict_stalesrc/discovery.rs:594 | fn | 10 | 1 | 0 | 7 | 0.5 | |
| test_evict_keeps_freshsrc/discovery.rs:606 | fn | 6 | 1 | 0 | 6 | 0.5 | |
| test_healthy_peers_filtersrc/discovery.rs:614 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| test_peers_for_languagesrc/discovery.rs:628 | fn | 16 | 1 | 0 | 5 | 0.5 | |
| test_gpu_peer_filter_and_accessorssrc/discovery.rs:646 | fn | 34 | 1 | 0 | 9 | 0.5 | |
| test_gossip_payload_excludes_stalesrc/discovery.rs:682 | fn | 15 | 1 | 0 | 7 | 0.5 | |
| test_merge_gossip_dedupsrc/discovery.rs:699 | fn | 21 | 1 | 0 | 6 | 0.5 | |
| test_healthy_gossip_targets_choose_three_and_skip_bad_peerssrc/discovery.rs:722 | fn | 20 | 3 | 0 | 5 | 0.5 | |
| test_merge_gossip_skips_selfsrc/discovery.rs:744 | fn | 6 | 1 | 0 | 3 | 0.5 | |
| test_sync_to_contextsrc/discovery.rs:752 | fn | 17 | 1 | 0 | 5 | 0.5 | |
| test_global_wrappers_sync_evict_targets_and_merge_responsesrc/discovery.rs:771 | fn | 58 | 3 | 0 | 12 | 0.5 | |
| test_gossip_tick_without_targets_only_evictssrc/discovery.rs:831 | fn | 21 | 1 | 0 | 7 | 0.5 | |
| test_post_gossip_marks_peer_unhealthy_for_invalid_endpointsrc/discovery.rs:854 | fn | 11 | 1 | 0 | 6 | 0.5 | |
| test_gossip_tick_merges_successful_local_responsesrc/discovery.rs:867 | fn | 22 | 1 | 0 | 8 | 0.5 | |
| test_bootstrap_with_unreachable_seedsrc/discovery.rs:891 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| test_bootstrap_discovery_merges_successful_seed_responsesrc/discovery.rs:903 | fn | 14 | 1 | 0 | 6 | 0.5 | |
| test_statssrc/discovery.rs:919 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| test_handle_discover_routesrc/discovery.rs:933 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| test_handle_discover_records_gpu_fields_and_peers_listsrc/discovery.rs:946 | fn | 49 | 1 | 0 | 4 | 0.5 | |
| test_handle_discover_explicit_gpu_capable_overrides_native_gpu_tagsrc/discovery.rs:997 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| test_handle_discover_missing_peer_idsrc/discovery.rs:1012 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_handle_gossip_exchange_routesrc/discovery.rs:1018 | fn | 18 | 1 | 0 | 1 | 0.5 | |
| test_handle_gossip_exchange_tolerates_invalid_peer_payloadsrc/discovery.rs:1038 | fn | 8 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.