mleku
22cde96f3f
Remove `bufpool` references and unused imports, optimize memory operations.
...
- Removed `bufpool` usage throughout `tag`, `tags`, and `event` packages for memory efficiency.
- Replaced in-place buffer modifications with independent, deep-copied allocations to prevent unintended mutations.
- Added new `Clone` method for deep copying `event.E`.
- Ensured valid JSON emission for nil `Tags` in `event` marshaling.
- Introduced `cmd/stresstest` for relay stress-testing with detailed workload generation and query simulation.
4 months ago
mleku
fc546ddc0b
Replace `errorf` with `errors` and `fmt.Errorf`, remove redundant logging across database operations, minimize unused imports, and improve concurrent event delivery logic. Added CPU utilization optimization in the main runtime configuration.
4 months ago
mleku
110223fc4e
Migrate internal module imports to unified package path.
...
Replaced legacy `*.orly` module imports with `next.orly.dev/pkg` paths across the codebase for consistency. Removed legacy `go.mod` files from sub-packages, consolidating dependency management. Added Dockerfiles and configurations for benchmarking environments.
4 months ago
mleku
e2b7152221
Introduce `Ctx()` for proper context management in `Listener` and replace direct context usage in `HandleDelete` with `Ctx()`.
...
also introduce a 3 second timeout for websocket read failure
4 months ago
mleku
bf7ca1da43
Improve logging consistency across the application, handle context cancellation during WebSocket writes, and introduce async ACL reconfiguration for admin events.
4 months ago
mleku
cb54891473
Remove verbose and debug logging across `HandleDelete`, `HandleEvent`, and `acl/follows` for consistency.
4 months ago
mleku
c2c6720e01
Enhance `SaveEvent` logic to handle older event rejection with error reporting, validate timestamps in parameterized replaceable events, and improve `HandleEvent` error handling for blocked events.
4 months ago
mleku
ddaab70d2b
Improve `HandleDelete` error handling, add validation for deletion ownership, and enhance logging for unauthorized deletion attempts.
4 months ago
mleku
c9314bdbd0
Refactor `GetAccessLevel` to include address parameter, update all ACL implementations and handlers for enhanced contextual access control.
4 months ago
mleku
f570660f37
Uncomment and enable additional `relayinfo` features and fix order of event response handling in `SaveEvent`.
4 months ago
mleku
3d3a0fa520
Refactor `Signer` to use `secp256k1` directly and enhance ACL reconfiguration for admin-triggered events
4 months ago
mleku
135508c390
Ensure proper memory management by adding `Free` calls to release pooled buffers across `export`, `import`, and event handling workflows.
4 months ago
mleku
5a068378fa
clean up some remnant commented out code
4 months ago
mleku
5edb7a3b09
implement auth and a simple admin-follows whitelist
4 months ago
mleku
f5a8c094e4
Introduce ACL registry with `follows` implementation, enhance `SaveEvent` for replaceable kinds, and refactor filter-based serial fetching. Update configs and dependencies.
4 months ago
mleku
b6ea3d5181
Add `HandleDelete` and `GetSerialsFromFilter` methods, integrate admin keys handling, and enhance constraints API. Include a new CLI `convert` tool for key translation.
4 months ago
mleku
5a640e7502
Introduce `ProcessDelete` method in `database` package; update `go.mod` with `database.orly` module replacements across packages
4 months ago
mleku
b08e94807b
Refactor database methods: simplify `SaveEvent` signature, enhance logging, and introduce deletion check logic with `CheckForDeleted`.
4 months ago
mleku
898aa0cb63
Add context to `NewPublisher`, improve logging levels, dispatch events on publish, and refine envelope handling
...
fixes a panic from the nil context
4 months ago
mleku
5d04afd748
Remove unused `eventpool` package, improve logging levels, standardize websocket handling, and add `HandleClose` functionality.
4 months ago
mleku
51f04f5f60
implemented event and req
4 months ago