Skip to content

Commit

Permalink
feat: Update with new slave ID range in Consumer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Sep 5, 2024
1 parent 1be7305 commit 767bd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function makeReplication(): MySQLReplicationFactory
->withHost($config['host'] ?? '127.0.0.1')
->withPassword($config['password'] ?? 'root')
->withPort((int) ($config['port'] ?? 3306))
->withSlaveId(random_int(100, 999))
->withSlaveId(random_int(1000, 9999))
->withHeartbeatPeriod((float) ($config['heartbeat_period'] ?? 3))
->withDatabasesOnly($databasesOnly)
->withTablesOnly($tablesOnly);
Expand Down

0 comments on commit 767bd0a

Please sign in to comment.