diff --git a/third-party/thrift/src/thrift/lib/cpp2/server/test/util/MockServerConfigs.h b/third-party/thrift/src/thrift/lib/cpp2/server/test/util/MockServerConfigs.h index 6438d05b3e453..cddf5fdd27fa8 100644 --- a/third-party/thrift/src/thrift/lib/cpp2/server/test/util/MockServerConfigs.h +++ b/third-party/thrift/src/thrift/lib/cpp2/server/test/util/MockServerConfigs.h @@ -51,12 +51,12 @@ class MockServerConfigs : public apache::thrift::server::ServerConfigs { (), (const, override)); MOCK_METHOD( - apache::thrift::CPUConcurrencyController*, + apache::thrift::CPUConcurrencyController&, getCPUConcurrencyController, (), (override)); MOCK_METHOD( - const apache::thrift::CPUConcurrencyController*, + const apache::thrift::CPUConcurrencyController&, getCPUConcurrencyController, (), (const, override));