@@ -10,11 +10,11 @@ import (
10
10
core "github.com/ipfs/go-ipfs/core"
11
11
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
12
12
13
+ cidenc "gx/ipfs/QmPLrvCg3Pjbc77VeeLEY5Si39SuAGhaN1X38pXo7zUXzx/go-cidutil/cidenc"
13
14
cid "gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid"
14
15
path "gx/ipfs/QmZErC2Ay6WuGi96CPg316PwitdwgLo6RxZRqVjJjRj2MR/go-path"
15
16
cmds "gx/ipfs/Qma6uuSyjkecGhMFFLfzyJDPyoDtNJSHJNweDccZhaWkgU/go-ipfs-cmds"
16
17
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
17
- cidenc "gx/ipfs/QmckgkstbdXagMTQ4e1DW2SzxGcjjudbqEvA5H2Rb7uvAT/go-cidutil/cidenc"
18
18
cmdkit "gx/ipfs/Qmde5VP1qUkyQXKCfmEUA7bP64V2HAptbJ7phuPp7jXWwg/go-ipfs-cmdkit"
19
19
)
20
20
@@ -200,11 +200,11 @@ type RefWriter struct {
200
200
}
201
201
202
202
// WriteRefs writes refs of the given object to the underlying writer.
203
- func (rw * RefWriter ) WriteRefs (n ipld.Node , enc cidenc.Interface ) (int , error ) {
203
+ func (rw * RefWriter ) WriteRefs (n ipld.Node , enc cidenc.Encoder ) (int , error ) {
204
204
return rw .writeRefsRecursive (n , 0 , enc )
205
205
}
206
206
207
- func (rw * RefWriter ) writeRefsRecursive (n ipld.Node , depth int , enc cidenc.Interface ) (int , error ) {
207
+ func (rw * RefWriter ) writeRefsRecursive (n ipld.Node , depth int , enc cidenc.Encoder ) (int , error ) {
208
208
nc := n .Cid ()
209
209
210
210
var count int
@@ -315,7 +315,7 @@ func (rw *RefWriter) visit(c cid.Cid, depth int) (bool, bool) {
315
315
}
316
316
317
317
// Write one edge
318
- func (rw * RefWriter ) WriteEdge (from , to cid.Cid , linkname string , enc cidenc.Interface ) error {
318
+ func (rw * RefWriter ) WriteEdge (from , to cid.Cid , linkname string , enc cidenc.Encoder ) error {
319
319
if rw .Ctx != nil {
320
320
select {
321
321
case <- rw .Ctx .Done (): // just in case.
0 commit comments