From e4526c3279ed44366310c2e1942a9bd0070d3f35 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 06:24:02 +0000 Subject: [PATCH] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 1d43dbb according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2584 --- internal/core/algorithm/ngt/ngt.go | 68 +++++++++++++++--------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/internal/core/algorithm/ngt/ngt.go b/internal/core/algorithm/ngt/ngt.go index 2078775432..9c09d650ed 100644 --- a/internal/core/algorithm/ngt/ngt.go +++ b/internal/core/algorithm/ngt/ngt.go @@ -186,7 +186,7 @@ type ( InsertionRadiusCoefficient float64 SeedSize int32 SeedType seedType - TruncationThreadPoolSize int32 + TruncationThreadPoolSize int32 BatchSizeForCreation int32 GraphType graphType DynamicEdgeSizeBase int32 @@ -1162,39 +1162,39 @@ func (n *ngt) GetProperty() (prop *Property, err error) { cprop := C.ngt_get_property_info(n.index, ne.err) n.PutErrorBuffer(ne) return &Property{ - Dimension: int32(cprop.dimension), - ThreadPoolSize: int32(cprop.thread_pool_size), - ObjectType: objectType(cprop.object_type), - DistanceType: distanceType(cprop.distance_type), - IndexType: indexType(cprop.index_type), - DatabaseType: databaseType(cprop.database_type), - ObjectAlignment: objectAlignment(cprop.object_alignment), - PathAdjustmentInterval: int32(cprop.path_adjustment_interval), - GraphSharedMemorySize: int32(cprop.graph_shared_memory_size), - TreeSharedMemorySize: int32(cprop.tree_shared_memory_size), - ObjectSharedMemorySize: int32(cprop.object_shared_memory_size), - PrefetchOffset: int32(cprop.prefetch_offset), - PrefetchSize: int32(cprop.prefetch_size), - AccuracyTable: C.GoString(cprop.accuracy_table), - SearchType: C.GoString(cprop.search_type), - MaxMagnitude: float32(cprop.max_magnitude), + Dimension: int32(cprop.dimension), + ThreadPoolSize: int32(cprop.thread_pool_size), + ObjectType: objectType(cprop.object_type), + DistanceType: distanceType(cprop.distance_type), + IndexType: indexType(cprop.index_type), + DatabaseType: databaseType(cprop.database_type), + ObjectAlignment: objectAlignment(cprop.object_alignment), + PathAdjustmentInterval: int32(cprop.path_adjustment_interval), + GraphSharedMemorySize: int32(cprop.graph_shared_memory_size), + TreeSharedMemorySize: int32(cprop.tree_shared_memory_size), + ObjectSharedMemorySize: int32(cprop.object_shared_memory_size), + PrefetchOffset: int32(cprop.prefetch_offset), + PrefetchSize: int32(cprop.prefetch_size), + AccuracyTable: C.GoString(cprop.accuracy_table), + SearchType: C.GoString(cprop.search_type), + MaxMagnitude: float32(cprop.max_magnitude), NOfNeighborsForInsertionOrder: int32(cprop.n_of_neighbors_for_insertion_order), - EpsilonForInsertionOrder: float32(cprop.n_of_neighbors_for_insertion_order), - RefinementObjectType: objectType(cprop.refinement_object_type), - TruncationThreshold: int32(cprop.truncation_threshold), - EdgeSizeForCreation: int32(cprop.edge_size_for_creation), - EdgeSizeForSearch: int32(cprop.edge_size_for_search), - EdgeSizeLimitForCreation: int32(cprop.edge_size_limit_for_creation), - InsertionRadiusCoefficient: float64(cprop.insertion_radius_coefficient), - SeedSize: int32(cprop.seed_size), - SeedType: seedType(cprop.seed_type), - TruncationThreadPoolSize: int32(cprop.truncation_thread_pool_size), - BatchSizeForCreation: int32(cprop.batch_size_for_creation), - GraphType: graphType(cprop.graph_type), - DynamicEdgeSizeBase: int32(cprop.dynamic_edge_size_base), - DynamicEdgeSizeRate: int32(cprop.dynamic_edge_size_rate), - BuildTimeLimit: float32(cprop.build_time_limit), - OutgoingEdge: int32(cprop.outgoing_edge), - IncomingEdge: int32(cprop.incoming_edge), + EpsilonForInsertionOrder: float32(cprop.n_of_neighbors_for_insertion_order), + RefinementObjectType: objectType(cprop.refinement_object_type), + TruncationThreshold: int32(cprop.truncation_threshold), + EdgeSizeForCreation: int32(cprop.edge_size_for_creation), + EdgeSizeForSearch: int32(cprop.edge_size_for_search), + EdgeSizeLimitForCreation: int32(cprop.edge_size_limit_for_creation), + InsertionRadiusCoefficient: float64(cprop.insertion_radius_coefficient), + SeedSize: int32(cprop.seed_size), + SeedType: seedType(cprop.seed_type), + TruncationThreadPoolSize: int32(cprop.truncation_thread_pool_size), + BatchSizeForCreation: int32(cprop.batch_size_for_creation), + GraphType: graphType(cprop.graph_type), + DynamicEdgeSizeBase: int32(cprop.dynamic_edge_size_base), + DynamicEdgeSizeRate: int32(cprop.dynamic_edge_size_rate), + BuildTimeLimit: float32(cprop.build_time_limit), + OutgoingEdge: int32(cprop.outgoing_edge), + IncomingEdge: int32(cprop.incoming_edge), }, nil }