From ce9cde088876fcc5bc137d133c0d4d15317b151f Mon Sep 17 00:00:00 2001 From: Zaki Manian Date: Thu, 2 May 2019 08:41:05 -0700 Subject: [PATCH] Apply suggestions from code review Some typo fixes from review Co-Authored-By: zmanian --- lite/base_verifier.go | 2 +- lite/errors/errors.go | 2 +- lite/provider.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lite/base_verifier.go b/lite/base_verifier.go index cb0a0303c..73a7be5ed 100644 --- a/lite/base_verifier.go +++ b/lite/base_verifier.go @@ -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 { diff --git a/lite/errors/errors.go b/lite/errors/errors.go index 42ce90010..9242f46c9 100644 --- a/lite/errors/errors.go +++ b/lite/errors/errors.go @@ -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" } //---------------------------------------- diff --git a/lite/provider.go b/lite/provider.go index 73f674aba..3574c52dd 100644 --- a/lite/provider.go +++ b/lite/provider.go @@ -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 }