Skip to content

Commit edcc44d

Browse files
committed
minor
1 parent cc5c9f3 commit edcc44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/service-library/src/servicelib/redis/_semaphore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DistributedSemaphore(BaseModel):
6868
capacity: Maximum number of concurrent holders
6969
ttl: Time-to-live for semaphore entries (auto-cleanup)
7070
blocking: Whether acquire() should block until available
71-
timeout: Maximum time to wait when blocking (None = no timeout)
71+
blocking_timeout: Maximum time to wait when blocking (None = no timeout)
7272
7373
Example:
7474
async with DistributedSemaphore(
@@ -135,7 +135,7 @@ def validate_ttl(cls, v: datetime.timedelta) -> datetime.timedelta:
135135
raise ValueError(msg)
136136
return v
137137

138-
@field_validator("timeout")
138+
@field_validator("blocking_timeout")
139139
@classmethod
140140
def validate_timeout(
141141
cls, v: datetime.timedelta | None

0 commit comments

Comments
 (0)