Skip to content

Commit 6e28da4

Browse files
author
Andrei Neagu
committed
added wrapper
1 parent 0b57836 commit 6e28da4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/utils_rate_limit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
import time
55

66
from typing import List, Awaitable
7+
from functools import wraps
78

89
from aiohttp import ClientSession, ClientTimeout, ClientResponse
910

1011
log = logging.getLogger()
1112

1213

1314
def function_duration(func):
15+
@wraps(func)
1416
async def wrapper(*args, **kwargs):
1517
start = time.time()
1618
result = await func(*args, **kwargs)

0 commit comments

Comments
 (0)