Skip to content

Commit

Permalink
fix: remove map size
Browse files Browse the repository at this point in the history
  • Loading branch information
danvixent committed Jul 24, 2022
1 parent 63b3506 commit c04cc8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion search/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func init() {
var sc sliceContext
reflectStaticSizeSliceSearchContext = int(reflect.TypeOf(sc).Size())
var spc syncPoolContext
reflectStaticSizeSyncPoolSearchContext = int(reflect.TypeOf(spc).Size()) //nolint:govet
reflectStaticSizeSyncPoolSearchContext = int(reflect.TypeOf(spc).Size())
var l Location
reflectStaticSizeLocation = int(reflect.TypeOf(l).Size())
var dmsp DocumentMatchSlicePool
Expand Down
2 changes: 1 addition & 1 deletion search/sync_pool_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type syncPoolContext struct {
func newSearchSyncPoolContext(size, sortSize int) Context {
return &syncPoolContext{
DocumentMatchPool: NewDocumentMatchSyncPool(size, sortSize),
dvReaders: make(map[DocumentValueReadable]segment.DocumentValueReader, size/2),
dvReaders: make(map[DocumentValueReadable]segment.DocumentValueReader),
}
}

Expand Down

0 comments on commit c04cc8a

Please sign in to comment.