Skip to content

Commit

Permalink
lock: added return statement to lock acquire.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo committed Oct 31, 2023
1 parent c2f028a commit 64117aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion invenio_users_resources/services/users/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def acquire(self, timeout=None):
If the timeout is not provided, a default is retrieved from the config USERS_RESOURCES_MODERATION_LOCK_DEFAULT_TIMEOUT
"""
timeout = timeout or timeout_default
super().acquire(timeout=timeout_default)
return super().acquire(timeout=timeout_default)
4 changes: 0 additions & 4 deletions invenio_users_resources/services/users/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
from ...records.api import UserAggregate
from .lock import ModerationMutex

mod_lock_timeout = LocalProxy(
lambda: current_app.config.get("USERS_RESOURCES_MODERATION_LOCK_DEFAULT_TIMEOUT")
)


class UsersService(RecordService):
"""Users service."""
Expand Down

0 comments on commit 64117aa

Please sign in to comment.