Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

IS-1241: aio-pika update #526

Merged
merged 1 commit into from
Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions iconservice/icon_inner_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import asyncio
import json
from concurrent.futures.thread import ThreadPoolExecutor
from typing import Any, TYPE_CHECKING
from typing import Any, TYPE_CHECKING, Optional

from earlgrey import message_queue_task, MessageQueueStub, MessageQueueService

Expand Down Expand Up @@ -448,7 +448,7 @@ def make_error_response(code: Any, message: str) -> dict:
class IconScoreInnerService(MessageQueueService[IconScoreInnerTask]):
TaskType = IconScoreInnerTask

def _callback_connection_close(self, exc: Exception):
def _callback_connection_close(self, sender, exc: Optional[BaseException], *args, **kwargs):
Logger.error(tag=_TAG, msg=f"[Inner Service] connection closed. {exc}")
self.clean_close()

Expand All @@ -460,5 +460,5 @@ def clean_close(self):
class IconScoreInnerStub(MessageQueueStub[IconScoreInnerTask]):
TaskType = IconScoreInnerTask

def _callback_connection_close(self, exc: Exception):
def _callback_connection_close(self, sender, exc: Optional[BaseException], *args, **kwargs):
Logger.error(tag=_TAG, msg=f"[Inner Stub] connection closed. {exc}")
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setproctitle~=1.1.10
plyvel~=1.2.0
coincurve~=13.0.0
earlgrey~=0.1.1
earlgrey~=0.2.0
iconcommons~=1.1.3
msgpack~=1.0.0
iso3166~=1.0.1
Expand Down