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

Method set_priority

nodedb-bridge/src/wfq.rs:124–126  ·  view source on GitHub ↗

Set (or update) the priority class for a database. Applied on the next `pop_next` call after this update.

(&mut self, database_id: u64, cls: PriorityClass)

Source from the content-addressed store, hash-verified

122 /// Set (or update) the priority class for a database. Applied on the next
123 /// `pop_next` call after this update.
124 pub fn set_priority(&mut self, database_id: u64, cls: PriorityClass) {
125 self.priorities.insert(database_id, cls);
126 }
127
128 /// Pop the next item using deficit round-robin across all virtual queues.
129 ///

Calls 1

insertMethod · 0.45