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

Function put

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

Source from the content-addressed store, hash-verified

7use crate::control::security::catalog::{StoredUser, SystemCatalog};
8
9pub fn put(stored: &StoredUser, catalog: &SystemCatalog) {
10 if let Err(e) = catalog.put_user(stored) {
11 warn!(
12 username = %stored.username,
13 error = %e,
14 "catalog_entry: put_user failed"
15 );
16 }
17}
18
19pub fn delete(username: &str, catalog: &SystemCatalog) {
20 // Fully remove the user record from redb. `delete_user` is

Callers

nothing calls this directly

Calls 1

put_userMethod · 0.80

Tested by

no test coverage detected