Skip to main content

map_hash

Function map_hash 

Source
pub fn map_hash(h: HashType) -> HashType
Expand description

Map a configuration-layer ConfHashType to the runtime HashType used by the ring hash. The two enums are distinct (one is parsed from YAML, the other drives crate::hashkit::hash64); this is the single conversion seam so the dispatcher, the reaper, and the dyniak replica router all agree on which hash a pool uses.