File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/dipdup/datasources/tzkt Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111### Fixed
1212
1313* index: Fixed fetching ` migration ` operations.
14+ * tzkt: Fixed reconnection due to ` websockets ` message size limit.
1415
1516## 5.0.4 - 2022-05-05
1617
Original file line number Diff line number Diff line change 3131from pysignalr .client import SignalRClient
3232from pysignalr .exceptions import ConnectionError as WebsocketConnectionError
3333from pysignalr .messages import CompletionMessage # type: ignore
34- from pysignalr .transport .websocket import DEFAULT_MAX_SIZE
3534
3635from dipdup .config import HTTPConfig
3736from dipdup .config import ResolvedIndexConfigT
@@ -892,8 +891,8 @@ def _get_ws_client(self) -> SignalRClient:
892891 self ._logger .info ('Creating websocket client' )
893892 self ._ws_client = SignalRClient (
894893 url = f'{ self ._http ._url } /v1/events' ,
895- # NOTE: 1 MB default is not enough for big blocks
896- max_size = DEFAULT_MAX_SIZE * 10 ,
894+ # NOTE: It's safe. Remove comment after updating pysignalr.
895+ max_size = None , # type: ignore
897896 )
898897
899898 self ._ws_client .on_open (self ._on_connect )
You can’t perform that action at this time.
0 commit comments