fix: shadow cid

This commit is contained in:
Derrick Hammer 2024-03-01 04:50:12 -05:00
parent 866739007c
commit 56100e5d50
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -880,6 +880,7 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
results := make(map[string]pinResult, len(cids))
for i := 0; i < len(cids); i++ {
cid := cids[i]
go func(cid *encoding.CID) {
if err := q.QueueTask(func(ctx context.Context) error {
ret := pinQueueResult{
@ -904,7 +905,7 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
cid: cid,
}
}
}(cids[i])
}(cid)
}
go func() {