Skip to content

Commit

Permalink
Update RPC example
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Sep 19, 2023
1 parent a36b8fa commit f6a3401
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/rpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func testConsumer(ctx context.Context) error {

case rpc.BootDeviceMethod:

case rpc.PingMethod:
rp.Result = "pong"
default:
w.WriteHeader(http.StatusNotFound)
}
Expand Down

0 comments on commit f6a3401

Please sign in to comment.