Skip to content

Commit

Permalink
chore: fix some typos in comments (hyperledger#6951)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
2 people authored and matthew1001 committed Jun 7, 2024
1 parent ae07f29 commit 80f6837
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ void dispatch(final EthMessage ethMessage) {
*
* @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<RequestManager> getRequestManager(final String protocolName, final int code) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void sendMessageBetweenAgents(
}

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public String convertToPrometheusName(final MetricCategory category, final Strin

/**
* 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
Expand Down

0 comments on commit 80f6837

Please sign in to comment.