chore: fix some typos in comments (#6951)

* chore: fix some typos in comments

Signed-off-by: StevenMia <flite@foxmail.com>

* Apply suggestions from code review

fix typo

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: StevenMia <flite@foxmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/6964/head
StevenMia 7 months ago committed by GitHub
parent 02754e8136
commit 2bb0a59860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/statemachine/IbftController.java
  2. 2
      consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/statemachine/QbftController.java
  3. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java
  4. 2
      ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java
  5. 2
      metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java

@ -46,7 +46,7 @@ public class IbftController extends BaseBftController {
* @param gossiper the gossiper * @param gossiper the gossiper
* @param duplicateMessageTracker the duplicate message tracker * @param duplicateMessageTracker the duplicate message tracker
* @param futureMessageBuffer the future message buffer * @param futureMessageBuffer the future message buffer
* @param sychronizerUpdater the sychronizer updater * @param sychronizerUpdater the synchronizer updater
*/ */
public IbftController( public IbftController(
final Blockchain blockchain, final Blockchain blockchain,

@ -48,7 +48,7 @@ public class QbftController extends BaseBftController {
* @param gossiper the gossiper * @param gossiper the gossiper
* @param duplicateMessageTracker the duplicate message tracker * @param duplicateMessageTracker the duplicate message tracker
* @param futureMessageBuffer the future message buffer * @param futureMessageBuffer the future message buffer
* @param sychronizerUpdater the sychronizer updater * @param sychronizerUpdater the synchronizer updater
* @param bftExtraDataCodec the bft extra data codec * @param bftExtraDataCodec the bft extra data codec
*/ */
public QbftController( public QbftController(

@ -461,7 +461,7 @@ public class EthPeer implements Comparable<EthPeer> {
* *
* @param protocolName the type of protocol the message is for * @param protocolName the type of protocol the message is for
* @param code the message code * @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 * request message
*/ */
private Optional<RequestManager> getRequestManager(final String protocolName, final int code) { private Optional<RequestManager> getRequestManager(final String protocolName, final int code) {

@ -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 count the number of agents to start
* @param bootstrapPeers the list of bootstrap peers * @param bootstrapPeers the list of bootstrap peers

@ -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, * 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 category the category
* @param name the name * @param name the name

Loading…
Cancel
Save