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

Function handle_echo

nodedb/src/control/server/resp/handler.rs:79–84  ·  view source on GitHub ↗
(cmd: &RespCommand)

Source from the content-addressed store, hash-verified

77}
78
79fn handle_echo(cmd: &RespCommand) -> RespValue {
80 match cmd.arg(0) {
81 Some(msg) => RespValue::bulk(msg.to_vec()),
82 None => RespValue::err("ERR wrong number of arguments for 'echo' command"),
83 }
84}
85
86fn handle_select(cmd: &RespCommand, session: &mut RespSession) -> RespValue {
87 match cmd.arg_str(0) {

Callers 1

executeFunction · 0.85

Calls 3

argMethod · 0.80
errFunction · 0.50
to_vecMethod · 0.45

Tested by

no test coverage detected