bugfix
This commit is contained in:
parent
115608cf98
commit
fa00e13dc6
@ -118,12 +118,11 @@ class ProcessorResource(StaticResource,Url2File):
|
|||||||
return ns
|
return ns
|
||||||
|
|
||||||
async def _handle(self,request:Request) -> StreamResponse:
|
async def _handle(self,request:Request) -> StreamResponse:
|
||||||
t = TimeCost()
|
|
||||||
name = str(request.url)
|
name = str(request.url)
|
||||||
t.begin(name)
|
t = TimeCost(name)
|
||||||
x = self._handle1(request)
|
with t:
|
||||||
t.end(name)
|
x = self._handle1(request)
|
||||||
print(name,':', ':'.join(t.getTimeCost(name)))
|
print(name,':', 'time cost=', t.end_time = t.begin_time)
|
||||||
return x
|
return x
|
||||||
|
|
||||||
async def _handle1(self,request:Request) -> StreamResponse:
|
async def _handle1(self,request:Request) -> StreamResponse:
|
||||||
|
Loading…
Reference in New Issue
Block a user