This repository was archived by the owner on Jun 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ type ObjectStat struct {
31
31
CumulativeSize int
32
32
}
33
33
34
-
35
34
const (
36
35
// DiffAdd is a Type of ObjectChange where a link was added to the graph
37
36
DiffAdd = iota
@@ -57,11 +56,11 @@ type ObjectChange struct {
57
56
58
57
// Before holds the link path before the change. Note that when a link is
59
58
// added, this will be nil.
60
- Before Path
59
+ Before ResolvedPath
61
60
62
61
// After holds the link path after the change. Note that when a link is
63
62
// removed, this will be nil.
64
- After Path
63
+ After ResolvedPath
65
64
}
66
65
67
66
// ObjectAPI specifies the interface to MerkleDAG and contains useful utilities
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ func (objectOpts) DataType(t string) ObjectPutOption {
105
105
}
106
106
}
107
107
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
109
109
// objects, default is false
110
- func (objectOpts ) WithPin (pin bool ) ObjectPutOption {
110
+ func (objectOpts ) Pin (pin bool ) ObjectPutOption {
111
111
return func (settings * ObjectPutSettings ) error {
112
112
settings .Pin = pin
113
113
return nil
You can’t perform that action at this time.
0 commit comments