- pkg/protocol/ws/client.go
- Changed `break` to `return` to ensure proper error handling flow in `client.go`.
this bug was causing the CPU usage to go very high from fmt.Errorf statements. changed them to errorf.E so they printed and were visible.
- pkg/encoders/filter/filter.go
- Updated loop condition to check slice length `> 0` instead of `>= 0`.
- pkg/version/version
- Updated version from `v0.8.6` to `v0.8.7`.
- pkg/protocol/socketapi/publisher.go
- Removed unnecessary debug logging for subscriber filtering and privilege checks.
- Minor comment formatting correction.
- pkg/database/query-events.go
- Removed outdated debug logs during event processing.
- Cleaned up redundant log usage for deletion event handling.
- pkg/app/relay/lists.go
- Replaced `sync.Mutex` with `sync.RWMutex` for better concurrency handling.
- Adjusted locking methods (`Lock` to `RLock` and `Unlock` to `RUnlock`) where applicable.
- pkg/version/version
- Updated version from `v0.8.4` to `v0.8.5`.
- .github/workflows/go.yml
- Updated `CGO_ENABLED` flag from `1` to `0` for Linux ARM64 builds.
- pkg/protocol/ws/client_test.go
- Commented out the `TestPublishBlocked` test as it is no longer in use.
- pkg/protocol/ws/subscription_test.go
- Commented out `TestSubscribeBasic` and `TestNestedSubscriptions` tests.
- pkg/version/version
- Updated version from `v0.8.3` to `v0.8.4`.
- pkg/version/version
- Updated version from v0.8.2 to v0.8.3.
- .github/workflows/go.yml
- Removed `--ldflags '-extldflags "-static"'` from Linux builds for amd64 and arm64 architectures.
- pkg/crypto/p256k/btcec/btcec_test.go
- Added `orly.dev/pkg/utils` import.
- pkg/protocol/ws/client.go
- Commented out unused logging related to filter matching.
- pkg/version/version
- Bumped version from `v0.8.1` to `v0.8.2`.
- pkg/encoders/event/reader.go
- Deleted the `UnmarshalRead` function and associated event unmarshaling logic.
- pkg/database/migrations.go
- Added a log statement indicating migration completion.
- Replaced `UnmarshalRead` with `UnmarshalBinary` in the event decoding process.
- pkg/database/database.go
- Added `RunMigrations` to handle new index versions.
- Integrated `DeleteExpired` for scheduled cleanup of expired events within a goroutine.
- pkg/database/delete-event.go
- Refactored the existing deletion logic into `DeleteEventBySerial`.
- pkg/database/delete-expired.go
- Added new implementation to handle deletion of expired events using expiration indexes.
- pkg/database/migrations.go
- Implemented `RunMigrations` to handle database versioning and reindexing when new keys are introduced.
- pkg/database/indexes/keys.go
- Added `ExpirationPrefix` and `VersionPrefix` for new expiration and version indexes.
- Implemented encoding structs for expiration and version handling.
- pkg/encoders/event/writer.go
- Added JSON marshaling logic to serialize events with or without whitespace.
- pkg/encoders/event/reader.go
- Refined unmarshaling logic for handling event keys and values robustly.
- pkg/protocol/socketapi/handleEvent.go
- Formatted log statements and updated logging verbosity for event handling.
- pkg/app/relay/handleRelayinfo.go
- Re-enabled relay handling for expiration timestamps.
- pkg/database/indexes/types.go (new file)
- Introduced structures for `Uint40s` and other types used in indexes.
- main.go
- Removed static favicon serving from `ServeMux`.
- Removed import for `net/http`.
- pkg/version/version
- Updated version from v0.6.0 to v0.6.1.
- cmd/lerproxy/main.go
- Added embedded support for default favicon using `//go:embed`.
- Modified logic to serve favicon as an embedded resource or from file in the same directory as the nostr.json
- static/favicon.ico
- Deleted static favicon file.
- cmd/lerproxy/favicon.ico
- Added new file for embedded favicon resource.