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

Function handle_ping

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

Source from the content-addressed store, hash-verified

70// ---------------------------------------------------------------------------
71
72fn handle_ping(cmd: &RespCommand) -> RespValue {
73 match cmd.arg(0) {
74 Some(msg) => RespValue::bulk(msg.to_vec()),
75 None => RespValue::SimpleString("PONG".into()),
76 }
77}
78
79fn handle_echo(cmd: &RespCommand) -> RespValue {
80 match cmd.arg(0) {

Callers 1

executeFunction · 0.70

Calls 2

argMethod · 0.80
to_vecMethod · 0.45

Tested by

no test coverage detected