[#460] Fix typos in commentaries

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-04-02 19:21:05 +03:00 committed by Leonard Lyubich
parent 0f01a69fd3
commit e6c9fb283c
5 changed files with 7 additions and 7 deletions

View file

@ -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
}

View file

@ -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{

View file

@ -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)
}

View file

@ -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

View file

@ -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.