Skip to content

Commit 33dff9b

Browse files
authored
chore: fix problematic comment (#3479)
2 parents c363b9e + 3a7ec32 commit 33dff9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/local_object_storage/blobstor/fstree/head.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (t *FSTree) getObjectStream(addr oid.Address) (*objectSDK.Object, io.ReadSe
6666
return obj, reader, nil
6767
}
6868

69-
// extractHeaderOnly reads the header of an object from a file.
69+
// extractHeaderAndStream reads the header of an object from a file.
7070
// The caller is responsible for closing the returned io.ReadCloser if it is not nil.
7171
func (t *FSTree) extractHeaderAndStream(id oid.ID, f *os.File) (*objectSDK.Object, io.ReadSeekCloser, error) {
7272
buf := make([]byte, objectSDK.MaxHeaderLen, 2*objectSDK.MaxHeaderLen)

pkg/local_object_storage/shard/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var dumpMagic = []byte("NEOF")
1212

1313
var ErrMustBeReadOnly = logicerr.New("shard must be in read-only mode")
1414

15-
// DumpToStream dumps all objects from the shard to a given stream.
15+
// Dump dumps all objects from the shard to a given stream.
1616
//
1717
// Returns any error encountered and the number of objects written.
1818
func (s *Shard) Dump(w io.Writer, ignoreErrors bool) (int, error) {

0 commit comments

Comments
 (0)