Skip to content

Commit ea4810f

Browse files
committed
Better initial reprovide performace
Signed-off-by: Gustavo Sampaio <[email protected]>
1 parent cf2646f commit ea4810f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

host.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ func (host *hostImpl) Reprovide(ctx context.Context, withBlocks bool) error {
280280
}
281281

282282
for cid := range ch {
283-
host.Provide(ctx, cid)
283+
_cid := cid
284+
host.provideWorker.PostJob(func(ctx context.Context) error {
285+
return host.Provide(ctx, _cid)
286+
})
284287
}
285288
}
286289

0 commit comments

Comments
 (0)