@@ -52,7 +52,7 @@ The output is:
52
52
}
53
53
args := req .Arguments ()
54
54
if len (args ) > 0 {
55
- out := perKeyActionAsChan (args , func (c * cid.Cid ) * filestore.ListRes {
55
+ out := perKeyActionToChan (args , func (c * cid.Cid ) * filestore.ListRes {
56
56
return filestore .List (fs , c )
57
57
}, req .Context ())
58
58
res .SetOutput (out )
@@ -62,7 +62,7 @@ The output is:
62
62
res .SetError (err , cmds .ErrNormal )
63
63
return
64
64
}
65
- out := listResAsChan (next , req .Context ())
65
+ out := listResToChan (next , req .Context ())
66
66
res .SetOutput (out )
67
67
}
68
68
},
@@ -128,7 +128,7 @@ For ERROR entries the error will also be printed to stderr.
128
128
}
129
129
args := req .Arguments ()
130
130
if len (args ) > 0 {
131
- out := perKeyActionAsChan (args , func (c * cid.Cid ) * filestore.ListRes {
131
+ out := perKeyActionToChan (args , func (c * cid.Cid ) * filestore.ListRes {
132
132
return filestore .Verify (fs , c )
133
133
}, req .Context ())
134
134
res .SetOutput (out )
@@ -138,7 +138,7 @@ For ERROR entries the error will also be printed to stderr.
138
138
res .SetError (err , cmds .ErrNormal )
139
139
return
140
140
}
141
- out := listResAsChan (next , req .Context ())
141
+ out := listResToChan (next , req .Context ())
142
142
res .SetOutput (out )
143
143
}
144
144
},
@@ -175,7 +175,7 @@ func getFilestore(req cmds.Request) (*core.IpfsNode, *filestore.Filestore, error
175
175
return n , fs , err
176
176
}
177
177
178
- func listResAsChan (next func () * filestore.ListRes , ctx context.Context ) <- chan interface {} {
178
+ func listResToChan (next func () * filestore.ListRes , ctx context.Context ) <- chan interface {} {
179
179
out := make (chan interface {}, 128 )
180
180
go func () {
181
181
defer close (out )
@@ -194,7 +194,7 @@ func listResAsChan(next func() *filestore.ListRes, ctx context.Context) <-chan i
194
194
return out
195
195
}
196
196
197
- func perKeyActionAsChan (args []string , action func (* cid.Cid ) * filestore.ListRes , ctx context.Context ) <- chan interface {} {
197
+ func perKeyActionToChan (args []string , action func (* cid.Cid ) * filestore.ListRes , ctx context.Context ) <- chan interface {} {
198
198
out := make (chan interface {}, 128 )
199
199
go func () {
200
200
defer close (out )
0 commit comments