Skip to content

Commit 565ac8a

Browse files
Zekun Shenmeta-codesync[bot]
authored andcommitted
Fix RocketServerConnection API change in FuzzUtil.h
Summary: The RocketServerConnection constructor signature changed to use a Config struct instead of individual parameters. The NoopStreamMetricCallback type was removed. This updates the fuzz utility to use the new API, which accepts only 4 required parameters (the Config struct has default values). Reviewed By: hmflash Differential Revision: D92405634 fbshipit-source-id: 43dc886f630d088eb74f8da1cf9cee78a728b15d
1 parent 735abce commit 565ac8a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • thrift/lib/cpp2/transport/rocket/test/fuzz

thrift/lib/cpp2/transport/rocket/test/fuzz/FuzzUtil.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,13 @@ void testServerOneInput(const uint8_t* Data, size_t Size) {
147147
std::vector<std::unique_ptr<apache::thrift::rocket::SetupFrameInterceptor>> i;
148148
folly::SocketAddress address;
149149
MemoryTracker memoryTracker;
150-
NoopStreamMetricCallback streamMetricCallback;
151150

152151
auto connection = new apache::thrift::rocket::RocketServerConnection(
153152
std::move(sock),
154153
std::make_unique<apache::thrift::rocket::ThriftRocketServerHandler>(
155154
worker, address, sockPtr, v, i),
156155
memoryTracker, // (ingress)
157-
memoryTracker, // (egress)
158-
streamMetricCallback);
156+
memoryTracker); // (egress)
159157

160158
folly::DelayedDestruction::DestructorGuard dg(connection);
161159
apache::thrift::rocket::Parser<apache::thrift::rocket::RocketServerConnection>

0 commit comments

Comments
 (0)