forked from TrueCloudLab/frostfs-node
[#460] Fix typos in commentaries
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
0f01a69fd3
commit
e6c9fb283c
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue