Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #8148] Fix variable typo #8149

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading