From f6a3401162c53a2f530dcd8556ba6085e585435b Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Tue, 19 Sep 2023 08:49:25 -0600 Subject: [PATCH] Update RPC example Signed-off-by: Jacob Weinstock --- examples/rpc/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/rpc/main.go b/examples/rpc/main.go index 097ccfbc..cbcd5873 100644 --- a/examples/rpc/main.go +++ b/examples/rpc/main.go @@ -83,6 +83,8 @@ func testConsumer(ctx context.Context) error { case rpc.BootDeviceMethod: + case rpc.PingMethod: + rp.Result = "pong" default: w.WriteHeader(http.StatusNotFound) }