mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
refactor: use int as the factory (#10036)
makes it thread-safe if we need in the future. Also looks a bit clean.
This commit is contained in:
@@ -40,7 +40,7 @@ UPDATER_INFO_STR = json.dumps(UPDATER_INFO).encode("utf8")
|
||||
def make_request_handler():
|
||||
class RequestHandler(SimpleHTTPRequestHandler):
|
||||
# save requests count for each method
|
||||
hits: Dict[str, int] = defaultdict(lambda: 0)
|
||||
hits: Dict[str, int] = defaultdict(int)
|
||||
|
||||
def do_POST(self): # noqa: N802
|
||||
# analytics endpoint
|
||||
|
||||
Reference in New Issue
Block a user