From 2bb0a59860ba698291d7c73c85f9f64095e933fb Mon Sep 17 00:00:00 2001 From: StevenMia <166844090+StevenMia@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:09:48 +0800 Subject: [PATCH] chore: fix some typos in comments (#6951) * chore: fix some typos in comments Signed-off-by: StevenMia * Apply suggestions from code review fix typo Signed-off-by: Sally MacFarlane --------- Signed-off-by: StevenMia Signed-off-by: Sally MacFarlane Co-authored-by: Sally MacFarlane --- .../besu/consensus/ibft/statemachine/IbftController.java | 2 +- .../besu/consensus/qbft/statemachine/QbftController.java | 2 +- .../java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java | 2 +- .../besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java | 2 +- .../besu/metrics/prometheus/PrometheusMetricsSystem.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/statemachine/IbftController.java b/consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/statemachine/IbftController.java index 2e3c879b76..c19bd9f195 100644 --- a/consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/statemachine/IbftController.java +++ b/consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/statemachine/IbftController.java @@ -46,7 +46,7 @@ public class IbftController extends BaseBftController { * @param gossiper the gossiper * @param duplicateMessageTracker the duplicate message tracker * @param futureMessageBuffer the future message buffer - * @param sychronizerUpdater the sychronizer updater + * @param sychronizerUpdater the synchronizer updater */ public IbftController( final Blockchain blockchain, diff --git a/consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftController.java b/consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftController.java index c639a0f205..bd2751ff32 100644 --- a/consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftController.java +++ b/consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftController.java @@ -48,7 +48,7 @@ public class QbftController extends BaseBftController { * @param gossiper the gossiper * @param duplicateMessageTracker the duplicate message tracker * @param futureMessageBuffer the future message buffer - * @param sychronizerUpdater the sychronizer updater + * @param sychronizerUpdater the synchronizer updater * @param bftExtraDataCodec the bft extra data codec */ public QbftController( diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java index dba3926f4a..4ea10ef96e 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java @@ -461,7 +461,7 @@ public class EthPeer implements Comparable { * * @param protocolName the type of protocol the message is for * @param code the message code - * @return a request manager for the received response messsage, or Optional.empty() if this is a + * @return a request manager for the received response message, or Optional.empty() if this is a * request message */ private Optional getRequestManager(final String protocolName, final int code) { diff --git a/ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java b/ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java index ffc9fb1c30..c29855374e 100644 --- a/ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java +++ b/ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java @@ -128,7 +128,7 @@ public class PeerDiscoveryTestHelper { } /** - * Starts multiple discovery agents with the provided boostrap peers. + * Starts multiple discovery agents with the provided bootstrap peers. * * @param count the number of agents to start * @param bootstrapPeers the list of bootstrap peers diff --git a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java index 59211ee08a..218f575510 100644 --- a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java +++ b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java @@ -300,7 +300,7 @@ public class PrometheusMetricsSystem implements ObservableMetricsSystem { /** * Convert to prometheus counter name. Prometheus adds a _total suffix to the name if not present, - * so we remember if the original name already has it, to be able to covert back correctly + * so we remember if the original name already has it, to be able to convert back correctly * * @param category the category * @param name the name