Commit b5151db1 authored by Kenton Varda's avatar Kenton Varda

Merge branch 'master' of github.com:kentonv/capnproto

parents 9973fb9d 2c59e520
...@@ -300,7 +300,7 @@ the shared memory segment. Hence, the method implementation cannot just create ...@@ -300,7 +300,7 @@ the shared memory segment. Hence, the method implementation cannot just create
class DirectoryImpl final: public Directory::Server { class DirectoryImpl final: public Directory::Server {
public: public:
kj::Promise<void> open(OpenContext context) override { 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. // Throw an exception if not found.
KJ_REQUIRE(iter != files.end(), "File 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