File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ let generate_mutable_records (self : ocaml_mod) ocaml_types : unit =
128
128
| _ -> () )
129
129
ocaml_types
130
130
131
- let generate_service_struct service sc : unit =
131
+ let generate_service_struct (service : Ot.service ) sc : unit =
132
+ Pb_logger. log " Generating code for service %s\n " service.service_name;
132
133
Pb_codegen_services. gen_service_struct service sc
133
134
134
135
let generate_service_sig service sc : unit =
Original file line number Diff line number Diff line change @@ -94,13 +94,16 @@ let compile cmdline cmd_line_files_options : Ot.proto * _ =
94
94
(compilation unit) *)
95
95
let typed_proto =
96
96
{
97
- typed_proto with
98
97
Tt. proto_types =
99
98
List. filter
100
99
(function
101
100
| { Tt. file_name; _ } :: _ when file_name = proto_file_name -> true
102
101
| _ -> false )
103
102
typed_proto.proto_types;
103
+ proto_services =
104
+ List. filter
105
+ (fun s -> s.Tt. service_file_name = proto_file_name)
106
+ typed_proto.proto_services;
104
107
}
105
108
in
106
109
You can’t perform that action at this time.
0 commit comments