mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-07 23:02:36 +00:00
Apply suggestions from code review
Some typo fixes from review Co-Authored-By: zmanian <zaki@manian.org>
This commit is contained in:
@@ -16,7 +16,7 @@ var _ Verifier = (*BaseVerifier)(nil)
|
||||
// use the DynamicVerifier.
|
||||
//
|
||||
// NOTE: Verifier as a supported interface is deprecated, it may be reasonable
|
||||
// to rename this to simply "verifier" and to remove that intereface
|
||||
// to rename this to simply "verifier" and to remove that interface
|
||||
// declaration. See also VerifyingProvider, which is not a Verifier, but is a
|
||||
// Provider.
|
||||
type BaseVerifier struct {
|
||||
|
||||
@@ -44,7 +44,7 @@ func (e errEmptyTree) Error() string {
|
||||
type errCommitExpired struct{}
|
||||
|
||||
func (e errCommitExpired) Error() string {
|
||||
return "Commit is too old to be trusted"
|
||||
return "commit is too old to be trusted"
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@@ -104,7 +104,7 @@ func (cp concurrentProvider) joinConcurrency(chainID string, height int64) (uniq
|
||||
uniq.err = err
|
||||
// *After* setting the results, *then* call close(uniq.wait).
|
||||
close(uniq.wait)
|
||||
cp.mtx.Lock() // temporarily acquire lock to remove this iteem
|
||||
cp.mtx.Lock() // temporarily acquire lock to remove this item
|
||||
delete(cp.pendingVerifications, pkey)
|
||||
cp.mtx.Unlock() // and release lock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user