fix: address review feedback

- Removed duplicate blank line in event.go
- Use original event timestamp instead of time.Now() for EventStored
- Fixed MockEventBroadcaster.Subscribe to return nil instead of closed channel
- Added integration tests for EventStored with JetStreamEventStore

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
Claude Code
2026-01-13 22:25:10 +01:00
parent 0f89b07c0b
commit 5223cf136a
5 changed files with 213 additions and 9 deletions

View File

@@ -235,7 +235,7 @@ func (jes *JetStreamEventStore) publishEventStored(event *aether.Event) {
EventID: event.ID,
ActorID: event.ActorID,
Version: event.Version,
Timestamp: time.Now(),
Timestamp: event.Timestamp,
}
// Convert EventStored to Event for publishing (internal system event)