Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 1d43dbb according to the output
from Gofumpt and Prettier.

Details: #2584
  • Loading branch information
deepsource-autofix[bot] authored Aug 20, 2024
1 parent 1d43dbb commit e4526c3
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions internal/core/algorithm/ngt/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ type (
InsertionRadiusCoefficient float64
SeedSize int32
SeedType seedType
TruncationThreadPoolSize int32
TruncationThreadPoolSize int32
BatchSizeForCreation int32
GraphType graphType
DynamicEdgeSizeBase int32
Expand Down Expand Up @@ -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

Check warning on line 1199 in internal/core/algorithm/ngt/ngt.go

View check run for this annotation

Codecov / codecov/patch

internal/core/algorithm/ngt/ngt.go#L1160-L1199

Added lines #L1160 - L1199 were not covered by tests
}

0 comments on commit e4526c3

Please sign in to comment.