Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Aug 19, 2024
1 parent 6092097 commit c7392d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/algorithm/ngt/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func WithDimension(size int) Option {

// WithDistanceTypeByString represents the option to set the distance type for NGT.
func WithDistanceTypeByString(dt string) Option {
var d distanceType
d := DistanceNone
switch strings.NewReplacer("-", "", "_", "", " ", "").Replace(strings.ToLower(dt)) {
case "l1":
d = L1
Expand Down

0 comments on commit c7392d2

Please sign in to comment.