Skip to content

Commit b870384

Browse files
authored
Merge pull request #28 from tidesdb/version-issue
version fallback
2 parents 52afe54 + 04a2dcd commit b870384

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/VersionBadge.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
// Fetch the latest release version from GitHub API at build time
3-
let version = 'v0.0.0';
3+
let version = 'v1.2.3'; // Default to latest known version
44
let releaseUrl = 'https://github.com/tidesdb/tidesdb/releases';
55
66
try {
@@ -9,9 +9,12 @@ try {
99
const data = await response.json();
1010
version = data.tag_name || version;
1111
releaseUrl = data.html_url || releaseUrl;
12+
console.log('Successfully fetched TidesDB version:', version);
13+
} else {
14+
console.warn('GitHub API returned non-OK status:', response.status, response.statusText);
1215
}
1316
} catch (error) {
14-
console.warn('Failed to fetch TidesDB version:', error);
17+
console.warn('Failed to fetch TidesDB version from GitHub API, using default:', error.message);
1518
}
1619
---
1720

src/content/docs/reference/building.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ These constants define default values for column family configuration:
131131
#define TDB_DEFAULT_SKIPLIST_LEVELS 12
132132
#define TDB_DEFAULT_SKIPLIST_PROBABILITY 0.25
133133
#define TDB_DEFAULT_BLOOM_FILTER_FP_RATE 0.01
134+
#define TDB_DEFAULT_THREAD_POOL_SIZE 2
134135
```
135136
136137
## Testing

0 commit comments

Comments
 (0)