satellite/metainfo: Fix some docs comments
Fix a documentation comment for one method and apply our code conventions to some that I stumbled. Change-Id: I3baf5d004a128dcd561c3e27c080aab345c64461
This commit is contained in:
parent
1df7b360d7
commit
c400471bbc
@ -1143,7 +1143,8 @@ func (endpoint *Endpoint) BeginObject(ctx context.Context, req *pb.ObjectBeginRe
|
||||
}, nil
|
||||
}
|
||||
|
||||
// CommitObject commits object when all segments are also committed
|
||||
// CommitObject commits an object when all its segments have already been
|
||||
// committed.
|
||||
func (endpoint *Endpoint) CommitObject(ctx context.Context, req *pb.ObjectCommitRequest) (resp *pb.ObjectCommitResponse, err error) {
|
||||
defer mon.Task()(&ctx)(&err)
|
||||
|
||||
|
@ -27,12 +27,12 @@ type Service struct {
|
||||
bucketsDB BucketsDB
|
||||
}
|
||||
|
||||
// NewService creates new metainfo service
|
||||
// NewService creates new metainfo service.
|
||||
func NewService(logger *zap.Logger, db PointerDB, bucketsDB BucketsDB) *Service {
|
||||
return &Service{logger: logger, db: db, bucketsDB: bucketsDB}
|
||||
}
|
||||
|
||||
// Put puts pointer to db under specific path
|
||||
// Put puts pointer to db under specific path.
|
||||
func (s *Service) Put(ctx context.Context, path string, pointer *pb.Pointer) (err error) {
|
||||
defer mon.Task()(&ctx)(&err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user