From 32634a1670b596a9361475689217467a8125c1a8 Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Mon, 17 Jun 2024 10:08:15 -0700 Subject: [PATCH] make preloader actually async --- net/sync_dag.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/sync_dag.go b/net/sync_dag.go index 91a54b7a25..6e9801ebd7 100644 --- a/net/sync_dag.go +++ b/net/sync_dag.go @@ -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,