- StorageSubscriber: refactor to two-phase shutdown (forwarders drain EventBus channels into queue, then worker drains queue to SQLite) ensuring no in-flight events are lost on Stop() - Fix bus_test: increase channel capacity to avoid non-blocking drops in TestEventBusConcurrentPublish - Fix events_test: set MaxOpenConns(1) for in-memory SQLite to prevent concurrent-connection data visibility issues - Fix storage_test: remove manual ctx/cancel initialization after StorageSubscriber struct was refactored to separate workerCtx/forwarderCtx - Fix api/events.go: zone_id and person_id always take precedence; until timestamp uses < (cutoffMs+1000) to include full RFC3339 second - Fix api/events_test: default mode is expert, simple mode requires explicit ?mode=simple parameter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bus.go | ||
| bus_test.go | ||
| events.go | ||
| events_test.go | ||
| storage.go | ||
| storage_test.go | ||
| types.go | ||