Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Aug 16, 2024
1 parent ddea475 commit 25e444f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
22 changes: 17 additions & 5 deletions internal/core/algorithm/ngt/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ const (
// HalfFloat is 16bit floating point number.
HalfFloat
// -------------------------------------------------------------.
)

const (
// -------------------------------------------------------------
// Distance Type Definition
// -------------------------------------------------------------
Expand Down Expand Up @@ -283,28 +285,36 @@ const (
NormalizedCosine
// InnerProduct is inner product distance.
InnerProduct
)

const (
// -------------------------------------------------------------
// IndexType Definition
// -------------------------------------------------------------
IndexTypeNone = iota
IndexTypeNone indexType = iota
GraphAndTree
Graph
)

const (
// -------------------------------------------------------------
// DatabaseType Definition
// -------------------------------------------------------------
DatabaseTypeNone = iota
DatabaseTypeNone databaseType = iota
Memory
MemoryMappedFile
)

const (
// -------------------------------------------------------------
// ObjectAlignment Definition
// -------------------------------------------------------------
ObjectAlignmentNone = iota
ObjectAlignmentNone objectAlignment = iota
ObjectAlignmentTrue
ObjectAlignmentFalse
)

const (
// -------------------------------------------------------------
// SeedType Definition
// -------------------------------------------------------------
Expand All @@ -314,7 +324,9 @@ const (
FixedNodes
FirstNode
AllLeafNodes
)

const (
// -------------------------------------------------------------
// GraphType Definition
// -------------------------------------------------------------
Expand All @@ -327,9 +339,9 @@ const (
DNNG
RANNG
RIANNG
)

// -------------------------------------------------------------.

const (
// -------------------------------------------------------------
// ErrorCode is false
// -------------------------------------------------------------.
Expand Down
4 changes: 3 additions & 1 deletion pkg/gateway/lb/handler/grpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,9 @@ func (s *server) IndexProperty(
}
if prop != nil {
mu.Lock()
detail.Details[target] = prop.Details[target]
for key, value := range prop.Details {
detail.Details[target+"-"+key] = value
}
mu.Unlock()
}
return nil
Expand Down

0 comments on commit 25e444f

Please sign in to comment.