From e6c9fb283cc640918a76246eb70c680484a28c23 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 2 Apr 2021 19:21:05 +0300 Subject: [PATCH] [#460] Fix typos in commentaries Signed-off-by: Pavel Karpy --- pkg/network/transport/reputation/grpc/service.go | 4 ++-- .../container/announcement/load/route/placement/builder.go | 4 ++-- pkg/services/reputation/local/controller/calls.go | 2 +- pkg/services/reputation/local/controller/controller.go | 2 +- pkg/services/reputation/local/controller/deps.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/network/transport/reputation/grpc/service.go b/pkg/network/transport/reputation/grpc/service.go index 8a75ef8586..8794a565ec 100644 --- a/pkg/network/transport/reputation/grpc/service.go +++ b/pkg/network/transport/reputation/grpc/service.go @@ -8,8 +8,8 @@ import ( reputationrpc "github.com/nspcc-dev/neofs-node/pkg/services/reputation/rpc" ) -// Server wraps NeoFS API v2 Container service server -// and provides gRPC Container service server interface. +// Server wraps NeoFS API v2 Reputation service server +// and provides gRPC Reputation service server interface. type Server struct { srv reputationrpc.Server } diff --git a/pkg/services/container/announcement/load/route/placement/builder.go b/pkg/services/container/announcement/load/route/placement/builder.go index 061ac5921d..15fafb4285 100644 --- a/pkg/services/container/announcement/load/route/placement/builder.go +++ b/pkg/services/container/announcement/load/route/placement/builder.go @@ -36,11 +36,11 @@ func panicOnPrmValue(n string, v interface{}) { // Panics if at least one value of the parameters is invalid. // // The created Builder does not require additional -// initialization and is completely ready for work +// initialization and is completely ready for work. func New(prm Prm) *Builder { switch { case prm.PlacementBuilder == nil: - panicOnPrmValue("RemoteWriterProvider", prm.PlacementBuilder) + panicOnPrmValue("PlacementBuilder", prm.PlacementBuilder) } return &Builder{ diff --git a/pkg/services/reputation/local/controller/calls.go b/pkg/services/reputation/local/controller/calls.go index fefc81d7cf..6ef7345ce1 100644 --- a/pkg/services/reputation/local/controller/calls.go +++ b/pkg/services/reputation/local/controller/calls.go @@ -36,7 +36,7 @@ func (c *Controller) Report(prm ReportPrm) { // report local trust values reportCtx.report() - // finally stop and free the announcement + // finally stop and free the report c.freeReport(prm.epoch, reportCtx.log) } diff --git a/pkg/services/reputation/local/controller/controller.go b/pkg/services/reputation/local/controller/controller.go index e66d7ca024..274848a40e 100644 --- a/pkg/services/reputation/local/controller/controller.go +++ b/pkg/services/reputation/local/controller/controller.go @@ -19,7 +19,7 @@ type Prm struct { LocalTrustSource IteratorProvider // Place of recording the local values of - // the used space of containers. + // trust to other nodes. // // Must not be nil. LocalTrustTarget WriterProvider diff --git a/pkg/services/reputation/local/controller/deps.go b/pkg/services/reputation/local/controller/deps.go index f6bc4a999c..4976ccfb57 100644 --- a/pkg/services/reputation/local/controller/deps.go +++ b/pkg/services/reputation/local/controller/deps.go @@ -28,7 +28,7 @@ type Writer interface { // physical target. Implementations can cache values before // Close operation. // - // Put must not be called after Close. + // Write must not be called after Close. Write(reputation.Trust) error // Close exits with method-providing Writer.