File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ async def _process_requests(self):
7474 params = []
7575 response = fun (* params )
7676 response_schema = fastavro .parse_schema (
77- self ._avro_protocol ["messages" ][name ].get (
78- "response" , "null"
79- ),
77+ self ._avro_protocol ["messages" ][name ].get ("response" , "null" ),
8078 expand = True ,
8179 named_schemas = self ._named_types ,
8280 )
@@ -94,9 +92,7 @@ async def _process_requests(self):
9492 error_out = io .BytesIO ()
9593 fastavro .schemaless_writer (error_out , ["string" ], repr (e ))
9694 length = error_out .tell ()
97- self .transport .write (
98- struct .pack (">L" , length ) + error_out .getvalue ()
99- )
95+ self .transport .write (struct .pack (">L" , length ) + error_out .getvalue ())
10096 error_out .close ()
10197 else :
10298 self .transport .write (struct .pack (">L" , 1 ) + b"\0 " )
@@ -110,7 +106,7 @@ async def _process_requests(self):
110106 )
111107 finally :
112108 response_out .close ()
113- meta_out .close ()
109+ meta_out .close ()
114110 self .transport .write (struct .pack (">L" , 0 ))
115111 self .unpacker ._file = io .BytesIO ()
116112 if name == "shutdown" :
You can’t perform that action at this time.
0 commit comments