Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit 9fe2a84

Browse files
committed
commands: switch object commands to CoreAPI
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
1 parent 00f6430 commit 9fe2a84

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

object.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type ObjectStat struct {
3131
CumulativeSize int
3232
}
3333

34-
3534
const (
3635
// DiffAdd is a Type of ObjectChange where a link was added to the graph
3736
DiffAdd = iota
@@ -57,11 +56,11 @@ type ObjectChange struct {
5756

5857
// Before holds the link path before the change. Note that when a link is
5958
// added, this will be nil.
60-
Before Path
59+
Before ResolvedPath
6160

6261
// After holds the link path after the change. Note that when a link is
6362
// removed, this will be nil.
64-
After Path
63+
After ResolvedPath
6564
}
6665

6766
// ObjectAPI specifies the interface to MerkleDAG and contains useful utilities

options/object.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ func (objectOpts) DataType(t string) ObjectPutOption {
105105
}
106106
}
107107

108-
// WithPin is an option for Object.Put which specifies whether to pin the added
108+
// Pin is an option for Object.Put which specifies whether to pin the added
109109
// objects, default is false
110-
func (objectOpts) WithPin(pin bool) ObjectPutOption {
110+
func (objectOpts) Pin(pin bool) ObjectPutOption {
111111
return func(settings *ObjectPutSettings) error {
112112
settings.Pin = pin
113113
return nil

0 commit comments

Comments
 (0)