Skip to content

Commit

Permalink
clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
therealdarkknight committed Oct 12, 2023
1 parent 6338f11 commit b5b93ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hnsw/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ void _PG_init(void)
"Expansion factor to use during vector search in a scan",
"Valid values are in range [1, 400]",
&ldb_hnsw_ef_search,
//HNSW_DEFAULT_EF,
0, // sentinel value
// HNSW_DEFAULT_EF,
0, // sentinel value
1,
HNSW_MAX_EF,
PGC_USERSET,
Expand Down
3 changes: 2 additions & 1 deletion src/hnsw/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ bool ldb_amgettuple(IndexScanDesc scan, ScanDirection dir)
// about the furtheest neighbors
Assert(ScanDirectionIsForward(dir));

int ef = ldb_hnsw_ef_search; // 0 if not set, but we pass it into usearch_custom_ef anyway since 0 is also a sentinel value there
int ef = ldb_hnsw_ef_search; // 0 if not set, but we pass it into usearch_custom_ef anyway since 0 is also a
// sentinel value there
if(scanstate->first) {
int num_returned;
Datum value;
Expand Down

0 comments on commit b5b93ac

Please sign in to comment.