Skip to content

Commit 9e0dbe0

Browse files
Merge pull request #387 from fkromer/patch-1
fix: redis cache example
2 parents 5e7f53d + 12e85b4 commit 9e0dbe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/redis_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def main():
2828

2929
stream = BinLogStreamReader(
3030
connection_settings=MYSQL_SETTINGS,
31+
server_id=3, # server_id is your slave identifier, it should be unique
3132
only_events=[DeleteRowsEvent, WriteRowsEvent, UpdateRowsEvent])
3233

3334
for binlogevent in stream:

0 commit comments

Comments
 (0)