From 1c92dc2414f306d7672786fda509a763385feade Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 14 Apr 2021 16:40:52 +0300 Subject: [PATCH] [#482] reputation: Fix typos in comments Signed-off-by: Pavel Karpy --- pkg/services/reputation/eigentrust/calculator/calculator.go | 2 +- pkg/services/reputation/eigentrust/storage/consumers/calls.go | 2 +- pkg/services/reputation/eigentrust/storage/consumers/storage.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/reputation/eigentrust/calculator/calculator.go b/pkg/services/reputation/eigentrust/calculator/calculator.go index 5c0232a04..b94676361 100644 --- a/pkg/services/reputation/eigentrust/calculator/calculator.go +++ b/pkg/services/reputation/eigentrust/calculator/calculator.go @@ -13,7 +13,7 @@ import ( // Passing incorrect parameter values will result in constructor // failure (error or panic depending on the implementation). type Prm struct { - // Alpha parameter from origin EigenTrust algortihm + // Alpha parameter from origin EigenTrust algorithm // http://ilpubs.stanford.edu:8090/562/1/2002-56.pdf Ch.5.1. // // Must be in range (0, 1). diff --git a/pkg/services/reputation/eigentrust/storage/consumers/calls.go b/pkg/services/reputation/eigentrust/storage/consumers/calls.go index da0b44e09..ee147820f 100644 --- a/pkg/services/reputation/eigentrust/storage/consumers/calls.go +++ b/pkg/services/reputation/eigentrust/storage/consumers/calls.go @@ -31,7 +31,7 @@ func (x *Storage) Put(trust eigentrust.IterationTrust) { s.put(trust) } -// Consumers returns the storage of trusts of the consumers of the daugher peers +// Consumers returns the storage of trusts of the consumers of the daughter peers // for particular iteration of EigenTrust calculation for particular epoch. // // Returns false if there is no data for the epoch and iter. diff --git a/pkg/services/reputation/eigentrust/storage/consumers/storage.go b/pkg/services/reputation/eigentrust/storage/consumers/storage.go index 4be1313d0..ee811d84b 100644 --- a/pkg/services/reputation/eigentrust/storage/consumers/storage.go +++ b/pkg/services/reputation/eigentrust/storage/consumers/storage.go @@ -13,7 +13,7 @@ import ( // The component is not parameterizable at the moment. type Prm struct{} -// Storage represents in-memory storage that of the trusts +// Storage represents in-memory storage of the trusts // of the consumer peers. // // It maps epoch numbers to the repositories of intermediate