diff --git a/src/node_api.cc b/src/node_api.cc index b456ade2d4ca74..fb3ea5df2ce006 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -3377,7 +3377,7 @@ class Work : public node::AsyncResource, public node::ThreadPoolWork { _execute(_env, _data); } - void AfterThreadPoolWork(int status) { + void AfterThreadPoolWork(int status) override { if (_complete == nullptr) return; diff --git a/src/node_zlib.cc b/src/node_zlib.cc index c77e6d3297df5d..ac5083862de4e3 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -217,11 +217,11 @@ class ZCtx : public AsyncWrap, public ThreadPoolWork { // TODO(addaleax): Make these methods non-static. It's a significant bunch // of churn that's better left for a separate PR. - void DoThreadPoolWork() { + void DoThreadPoolWork() override { Process(this); } - void AfterThreadPoolWork(int status) { + void AfterThreadPoolWork(int status) override { After(this, status); }