refactor: disable account queue globally

Set accounts.disableQueue = true on AccountManager during initialization:
- Applies to all accounts automatically
- No need for temporary queue toggling in individual operations
- Makes all bunker requests instant (no internal queueing)

Removed temporary queue disabling from bookmarkProcessing.ts since
it's now globally disabled.

Updated Amber.md to document the global approach.

This eliminates the root cause of decrypt hangs - requests no longer
wait in an internal queue for previous requests to complete.
This commit is contained in:
Gigi
2025-10-17 21:19:21 +02:00
parent 0785b034e4
commit 8eaba04d91
7 changed files with 24 additions and 40 deletions

View File

@@ -203,13 +203,11 @@ const Debug: React.FC<DebugProps> = ({ relayPool }) => {
setLiveTiming(prev => ({ ...prev, loadBookmarks: { startTime: start } }))
// Use onEvent callback to stream events as they arrive
// Shorter timeouts for debug page - trust EOSE from fast relays
// Trust EOSE - completes when relays finish, no artificial timeouts
const rawEvents = await queryEvents(
relayPool,
{ kinds: [KINDS.ListSimple, KINDS.ListReplaceable, KINDS.List, KINDS.WebBookmark], authors: [activeAccount.pubkey] },
{
localTimeoutMs: 800, // Local relays should be instant
remoteTimeoutMs: 2000, // Trust EOSE from fast remote relays
onEvent: (evt) => {
// Add event immediately with live deduplication
setBookmarkEvents(prev => {