Skip to content

Commit

Permalink
refactor: close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Dec 27, 2023
1 parent e18b47c commit 4676fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meilisync/source/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def __aiter__(self):
logger.exception(f"Binlog stream error: {e}, sleep 10s and retry...")
await asyncio.sleep(10)
await self.stream.close()
await self.ctl_conn.close()
self.ctl_conn.close()
await self._create_stream()

async def __aexit__(self, exc_type, exc_val, exc_tb):
Expand Down

0 comments on commit 4676fa4

Please sign in to comment.