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

Function put

nodedb/src/control/catalog_entry/apply/role.rs:9–17  ·  view source on GitHub ↗
(stored: &StoredRole, catalog: &SystemCatalog)

Source from the content-addressed store, hash-verified

7use crate::control::security::catalog::{StoredRole, SystemCatalog};
8
9pub fn put(stored: &StoredRole, catalog: &SystemCatalog) {
10 if let Err(e) = catalog.put_role(stored) {
11 warn!(
12 role = %stored.name,
13 error = %e,
14 "catalog_entry: put_role failed"
15 );
16 }
17}
18
19pub fn delete(name: &str, catalog: &SystemCatalog) {
20 if let Err(e) = catalog.delete_role(name) {

Callers

nothing calls this directly

Calls 1

put_roleMethod · 0.80

Tested by

no test coverage detected