Skip to content

Commit ea01ea4

Browse files
committed
Use multiprocessing Lock
So that multiprocessing frameworks can properly use the API. Signed-off-by: Marek Pikuła <marek@serenitycode.dev>
1 parent 54852ab commit ea01ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

headscale_api/headscale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from dataclasses import asdict, dataclass
77
from datetime import datetime, timedelta, timezone
88
from json import JSONDecodeError
9-
from threading import Lock
9+
from multiprocessing import Lock
1010
from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar, Union
1111

1212
import aiohttp

0 commit comments

Comments
 (0)