fix: shadow cid
This commit is contained in:
parent
866739007c
commit
56100e5d50
|
@ -880,6 +880,7 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
|
||||||
results := make(map[string]pinResult, len(cids))
|
results := make(map[string]pinResult, len(cids))
|
||||||
|
|
||||||
for i := 0; i < len(cids); i++ {
|
for i := 0; i < len(cids); i++ {
|
||||||
|
cid := cids[i]
|
||||||
go func(cid *encoding.CID) {
|
go func(cid *encoding.CID) {
|
||||||
if err := q.QueueTask(func(ctx context.Context) error {
|
if err := q.QueueTask(func(ctx context.Context) error {
|
||||||
ret := pinQueueResult{
|
ret := pinQueueResult{
|
||||||
|
@ -904,7 +905,7 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
|
||||||
cid: cid,
|
cid: cid,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}(cids[i])
|
}(cid)
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue