Skip to content

Commit 945e840

Browse files
committed
chore: update golangci.yml
1 parent 945986f commit 945e840

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ linters:
1313
- stylecheck
1414
- gosimple
1515
- goimports
16-
16+
concurrency: 2
1717
issues:
1818
exclude:
1919
- "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this"

storageprovider/direct_deal_provider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ func (ddp *DirectDealProvider) importDeal(ctx context.Context, dealParam *types.
126126
return err
127127
}
128128

129-
if !cParams.noCopyCarFile && !cParams.skipCommP {
129+
go func() {
130130
directDealLog.Infof("register shard. deal:%v, allocationID:%d, pieceCid:%s", deal.ID, deal.AllocationID, deal.PieceCID)
131131
// Register the deal data as a "shard" with the DAG store. Later it can be
132132
// fetched from the DAG store during retrieval.
133133
if err := ddp.dagStoreWrapper.RegisterShard(ctx, deal.PieceCID, "", true, nil); err != nil {
134134
directDealLog.Errorf("failed to register shard: %v", err)
135135
}
136-
}
136+
}()
137137

138138
return nil
139139
}

0 commit comments

Comments
 (0)