Skip to content

Commit

Permalink
Refactor SQLFederationRule (#31819)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Jun 22, 2024
1 parent 21d8d9d commit 46707f7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import lombok.Getter;
import org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
import org.apache.shardingsphere.infra.rule.attribute.RuleAttributes;
import org.apache.shardingsphere.infra.rule.scope.GlobalRule;
import org.apache.shardingsphere.sqlfederation.config.SQLFederationRuleConfiguration;
import org.apache.shardingsphere.sqlfederation.optimizer.context.OptimizerContext;
Expand All @@ -38,12 +37,9 @@ public final class SQLFederationRule implements GlobalRule {

private final AtomicReference<OptimizerContext> optimizerContext;

private final RuleAttributes attributes;

public SQLFederationRule(final SQLFederationRuleConfiguration ruleConfig, final Map<String, ShardingSphereDatabase> databases) {
configuration = ruleConfig;
optimizerContext = new AtomicReference<>(OptimizerContextFactory.create(databases));
attributes = new RuleAttributes();
}

@Override
Expand Down

0 comments on commit 46707f7

Please sign in to comment.