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

Function reject

nodedb-cluster/src/bootstrap/handle_join.rs:158–167  ·  view source on GitHub ↗

Build a rejection response with the given error message.

(error: String)

Source from the content-addressed store, hash-verified

156
157/// Build a rejection response with the given error message.
158fn reject(error: String) -> JoinResponse {
159 JoinResponse {
160 success: false,
161 error,
162 cluster_id: 0,
163 nodes: vec![],
164 vshard_to_group: vec![],
165 groups: vec![],
166 }
167}
168
169#[cfg(test)]
170mod tests {

Callers 1

handle_join_requestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected