We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617c54c commit 7ed86f8Copy full SHA for 7ed86f8
core/commands/dag/dag.go
@@ -88,6 +88,10 @@ into an object of the specified format.
88
cids := cid.NewSet()
89
b := ipld.NewBatch(req.Context, nd.DAG)
90
91
+ if dopin {
92
+ defer nd.Blockstore.PinLock().Unlock()
93
+ }
94
+
95
for {
96
file, err := req.Files.NextFile()
97
if err == io.EOF {
@@ -124,8 +128,6 @@ into an object of the specified format.
124
128
}
125
129
126
130
if dopin {
127
- defer nd.Blockstore.PinLock().Unlock()
-
131
cids.ForEach(func(c cid.Cid) error {
132
nd.Pinning.PinWithMode(c, pin.Recursive)
133
return nil
0 commit comments