Skip to content

Commit

Permalink
make preloader actually async
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Jun 17, 2024
1 parent d9bbd87 commit 32634a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sync_dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ func syncDAG(ctx context.Context, bserv blockservice.BlockService, block *corebl
//
// any errors encountered during preload are ignored
preloader := func(pctx preload.PreloadContext, l preload.Link) {
lctx := linking.LinkContext{Ctx: pctx.Ctx}
lsys.Load(lctx, l.Link, basicnode.Prototype.Any) //nolint:errcheck
go lsys.Load(linking.LinkContext{Ctx: pctx.Ctx}, l.Link, basicnode.Prototype.Any) //nolint:errcheck
}
config := traversal.Config{
Ctx: ctx,
Expand Down

0 comments on commit 32634a1

Please sign in to comment.