Skip to content

Commit

Permalink
[ISSUE apache#8148] Fix variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oopooa authored May 16, 2024
1 parent 8150e13 commit c00fac3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public BrokerController(
this.brokerConfig, this.nettyServerConfig, this.nettyClientConfig, this.messageStoreConfig
);

this.brokerStatsManager.setProduerStateGetter(new BrokerStatsManager.StateGetter() {
this.brokerStatsManager.setProducerStateGetter(new BrokerStatsManager.StateGetter() {
@Override
public boolean online(String instanceId, String group, String topic) {
if (getTopicConfigManager().getTopicConfigTable().containsKey(NamespaceUtil.wrapNamespace(instanceId, topic))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public class BrokerStatsManager {
private MomentStatsItemSet momentStatsItemSetFallTime;

private final StatisticsManager accountStatManager = new StatisticsManager();
private StateGetter produerStateGetter;
private StateGetter producerStateGetter;
private StateGetter consumerStateGetter;

private BrokerConfig brokerConfig;
Expand Down Expand Up @@ -270,7 +270,7 @@ public boolean online(StatisticsItem item) {

String kind = item.getStatKind();
if (ACCOUNT_SEND.equals(kind) || ACCOUNT_SEND_REJ.equals(kind)) {
return produerStateGetter.online(instanceId, group, topic);
return producerStateGetter.online(instanceId, group, topic);
} else if (ACCOUNT_RCV.equals(kind) || ACCOUNT_SEND_BACK.equals(kind) || ACCOUNT_SEND_BACK_TO_DLQ.equals(kind) || ACCOUNT_REV_REJ.equals(kind)) {
return consumerStateGetter.online(instanceId, group, topic);
}
Expand All @@ -296,12 +296,12 @@ public MomentStatsItemSet getMomentStatsItemSetFallTime() {
return momentStatsItemSetFallTime;
}

public StateGetter getProduerStateGetter() {
return produerStateGetter;
public StateGetter getProducerStateGetter() {
return producerStateGetter;
}

public void setProduerStateGetter(StateGetter produerStateGetter) {
this.produerStateGetter = produerStateGetter;
public void setProducerStateGetter(StateGetter producerStateGetter) {
this.producerStateGetter = producerStateGetter;
}

public StateGetter getConsumerStateGetter() {
Expand Down

0 comments on commit c00fac3

Please sign in to comment.