Skip to content

Commit

Permalink
orderedmap.New expects an int for capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
aldarisbm committed May 31, 2023
1 parent 318ed9f commit 3841a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/index_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type IndexManager struct {

func NewIndexManager(path string, max uint) *IndexManager {
return &IndexManager{
indices: orderedmap.New[string, *Index](max),
indices: orderedmap.New[string, *Index](int(max)),
max: max,
path: path,
}
Expand Down

0 comments on commit 3841a46

Please sign in to comment.