Commit graph

7 commits

Author SHA1 Message Date
c411d6b4ea Handle 2 edge cases in database migration 2026-04-25 21:50:57 +07:00
4989e38fbc fix: migration: use safe type assertions in SRV record migration
Avoid potential panics from nil or missing fields when migrating SRV
records by using comma-ok type assertions and guarding against empty
name/proto values.
2026-04-11 11:19:48 +07:00
08c4749607 fix: propagate iterator errors instead of silently returning partial results
Add Err() method to storage.Iterator interface and implement it on all
backends (LevelDB, PostgreSQL, in-memory). Update kvtpl.KVIterator.Err()
to fall through to the underlying iterator's error. Check Err() after
every iteration loop across kvtpl and usecase layers to surface I/O
failures and rate-limit errors instead of returning truncated data.
2026-03-26 08:02:15 +07:00
f457071d5d chore: replace interface{} with any across the codebase
Use the modern Go type alias `any` instead of `interface{}` throughout
all packages for improved readability and consistency with current Go idioms.
2026-03-01 17:38:04 +07:00
001b919870 fix: resolve go vet variable shadowing warnings 2026-03-01 17:37:59 +07:00
60cab40495 Add missing gitlab-pages-verification-code= in Gitlab 7 migration 2026-01-16 21:52:05 +08:00
6add2f220e Refactor storage layer to use key-value template pattern
All checks were successful
continuous-integration/drone/tag Build is passing
Extract common key-value storage operations into internal/storage/kvtpl/
template directory. This consolidates duplicated logic from both leveldb
and inmemory implementations into reusable generic functions.

Key changes:
- Create kvtpl/ package with generic KV storage operations
- Consolidate iterator implementation using generics
- Update migration functions to use new template structure
- Refactor tests to work with new storage interface

This prepares the codebase for easier addition of new storage backends
by providing a consistent template layer.
2026-01-09 17:17:04 +07:00
Renamed from internal/storage/leveldb/updates-from-7.go (Browse further)