Update migrate

This commit is contained in:
Andrea Cavalli 2024-03-31 01:54:44 +01:00
parent caf3f6888e
commit 31243c269a
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ public class Migrate {
// Tunables
var columnName = args[0];
var password = args[1];
var hostname = args[2];
//
System.out.println("Column: " + columnName);
@ -101,7 +102,7 @@ public class Migrate {
var protocol = new TBinaryProtocol.Factory();
var clients = ThreadLocal.withInitial(() -> {
try {
var socket = new TSocket("10.0.0.9", 5332);
var socket = new TSocket(hostname, 5332);
var transport = new TFramedTransport(socket);
transport.open();