diff --git a/src/Consumer.php b/src/Consumer.php index 6568efc..4b6bea8 100644 --- a/src/Consumer.php +++ b/src/Consumer.php @@ -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);