Skip to content

Commit b0caec8

Browse files
committed
perf: sort lids on creation
1 parent b3d249a commit b0caec8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frac/active_sealing_source.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func NewActiveSealingSource(active *Active, params common.SealParams) (*ActiveSe
7777
}
7878

7979
src.prepareInfo()
80+
src.prepareTokenLids()
8081

8182
// Sort documents if not skipped in configuration
8283
if !active.Config.SkipSortDocs {
@@ -164,7 +165,7 @@ func (src *ActiveSealingSource) prepareInfo() {
164165
}
165166

166167
func (src *ActiveSealingSource) prepareTokenLids() {
167-
for _, tl := range src.lids {
168+
for _, tl := range src.lids[1:] {
168169
tl.GetLIDs(src.mids, src.rids) // force merge now
169170
}
170171
}

0 commit comments

Comments
 (0)