Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Ray <[email protected]>
  • Loading branch information
jasonray committed Dec 25, 2023
1 parent 03de170 commit b8ff7ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pulpo_messaging/file_queue_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,11 @@ def peek(self, message_id: str) -> Message:
status = self.lookup_message_state(message_id=message_id)
logger.debug(f'peek {message_id=} {status=}')
# unknown, queue, lock, complete.success, complete.fail
if status== 'queue':
if status == 'queue':
return self._load_message_from_file(self._get_message_file_path(message_id))
elif status== 'lock':
if status == 'lock':
return self._load_message_from_file(self._get_lock_file_path(message_id))
return None

def delete(self, message_id: str):
status = self.lookup_message_state(message_id=message_id)
Expand Down

0 comments on commit b8ff7ce

Please sign in to comment.