File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
third-party/thrift/src/thrift/compiler/generate/go Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ void codegen_data::compute_thrift_metadata_types() {
239
239
240
240
for (auto const & service : current_program_->services ()) {
241
241
for (const auto & func : service->functions ()) {
242
- if (!is_func_go_server_supported (&func)) {
242
+ if (!go::is_func_go_client_supported (&func) &&
243
+ !go::is_func_go_server_supported (&func)) {
243
244
continue ; // Skip unsupported functions
244
245
}
245
246
@@ -256,6 +257,17 @@ void codegen_data::compute_thrift_metadata_types() {
256
257
add_to_thrift_metadata_types (type, visited_type_names);
257
258
}
258
259
}
260
+ if (func.stream () != nullptr ) {
261
+ auto type = func.stream ()->elem_type ().get_type ();
262
+ add_to_thrift_metadata_types (type, visited_type_names);
263
+ if (func.stream ()->exceptions () != nullptr ) {
264
+ for (const auto & exception :
265
+ func.stream ()->exceptions ()->get_members ()) {
266
+ auto type = exception->get_type ();
267
+ add_to_thrift_metadata_types (type, visited_type_names);
268
+ }
269
+ }
270
+ }
259
271
}
260
272
}
261
273
}
You can’t perform that action at this time.
0 commit comments