Commit 2c59e520 authored by Kenton Varda's avatar Kenton Varda

Merge pull request #291 from katreniak/bka-doc

doc/cxxrpc: use getParams() in server
parents 9e809b20 430b9291
......@@ -300,7 +300,7 @@ the shared memory segment. Hence, the method implementation cannot just create
class DirectoryImpl final: public Directory::Server {
public:
kj::Promise<void> open(OpenContext context) override {
auto iter = files.find(context.getRequest().getName());
auto iter = files.find(context.getParams().getName());
// Throw an exception if not found.
KJ_REQUIRE(iter != files.end(), "File not found.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment