Skip to content

Commit

Permalink
Fix the ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Aug 30, 2024
1 parent bb4dd3e commit 1114ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transport/msg_providers/data_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _receive_message(self) -> Optional[LogReceipt]:
if not self._queue:
self._fetch_logs_into_queue()
try:
return self._queue.pop()
return self._queue.popleft()
except IndexError:
return None

Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test_data_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_data_bus_mock_responses(web3_lido_unit):
)

for parser in provider._parsers:
parser._decode_event = Mock(side_effect=receipts)
parser._decode_event = Mock(side_effect=lambda x: x)

messages = provider.get_messages()
for mes in messages:
Expand Down

0 comments on commit 1114ddb

Please sign in to comment.