Commit bb65624e authored by tristaZero's avatar tristaZero
Browse files

set work.id = 123

parent ebd9ddf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ public class ShardingDatabasesConfiguration implements ExampleConfiguration {
    private TableRuleConfiguration getSportsmanTableRuleConfiguration() {
        TableRuleConfiguration result = new TableRuleConfiguration("t_sportsman");
        Properties properties = new Properties();
        properties.setProperty("worker.id", "123abc");
        properties.setProperty("worker.id", "123");
        result.setKeyGeneratorConfig(new KeyGeneratorConfiguration("SNOWFLAKE", "id", properties));
        return result;
    }
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ shardingRule:
        type: SNOWFLAKE
        column: id
        props:
          worker.id: 123abc
          worker.id: 123
  defaultDatabaseStrategy:
    inline:
      shardingColumn: id
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ shardingRule:
        type: SNOWFLAKE
        column: order_id
        props:
          worker.id: 123abc
          worker.id: 123
    t_order_item:
      actualDataNodes: ds_${0..1}.t_order_item_${0..1}
  bindingTables:
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ public final class LocalShardingDatabasesAndTablesConfiguration implements Examp
    
    private static KeyGeneratorConfiguration getKeyGeneratorConfiguration() {
        Properties properties = new Properties();
        properties.setProperty("worker.id", "123abc");
        properties.setProperty("worker.id", "123");
        return new KeyGeneratorConfiguration("SNOWFLAKE", "order_id", properties);
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public final class LocalShardingDatabasesConfiguration implements ExampleConfigu
    
    private static KeyGeneratorConfiguration getKeyGeneratorConfiguration() {
        Properties properties = new Properties();
        properties.setProperty("worker.id", "123abc");
        properties.setProperty("worker.id", "123");
        return new KeyGeneratorConfiguration("SNOWFLAKE", "order_id", properties);
    }
}
Loading