mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
refactor: clean up bunker implementation for better maintainability
- Extract reconnectBunkerSigner into reusable helper function - Reduce excessive debug logging in App.tsx (90+ lines → 30 lines) - Simplify account restoration logic with cleaner conditionals - Remove verbose signing logs from highlightCreationService - Keep only essential error logs for debugging - Follows DRY principles and applesauce patterns
This commit is contained in:
@@ -116,9 +116,7 @@ export async function createHighlight(
|
||||
}
|
||||
|
||||
// Sign the event
|
||||
console.log('[bunker] Signing highlight event...', { kind: highlightEvent.kind, tags: highlightEvent.tags.length })
|
||||
const signedEvent = await factory.sign(highlightEvent)
|
||||
console.log('[bunker] ✅ Highlight signed successfully!', { id: signedEvent.id.slice(0, 8) })
|
||||
|
||||
// Use unified write service to store and publish
|
||||
await publishEvent(relayPool, eventStore, signedEvent)
|
||||
|
||||
Reference in New Issue
Block a user