Commit Graph

3777 Commits

Author SHA1 Message Date
Bu5hm4nn
60be11ad43 Defautl Theme: Comment out shadow generation as it needs to be adapted to egui 0.28 2024-09-03 20:21:43 +02:00
Bu5hm4nn
bdd3edc215 TextEdit Widget: Fix position of search symbol and action items, update ThemeTest page. Issue #834 2024-09-03 20:13:50 +02:00
Bu5hm4nn
337a5e36e5 Add Relay: Move "Add Relay" button out of main navigation and into header of relays pages. Part of issue #834 2024-09-03 19:56:19 +02:00
Bu5hm4nn
95c053ad92 Relay Entry Dialog: Use widgets::modal_popup() to unify code and fix entry dialog not closable 2024-09-03 18:40:43 +02:00
Mike Dilger
b167ae8266 Revert "Merge branch 'minion_start_in_new' into unstable"
This reverts commit e33b58afd6, reversing
changes made to cc72b2fe9f.
2024-09-01 10:58:42 +12:00
Mike Dilger
e33b58afd6 Merge branch 'minion_start_in_new' into unstable 2024-08-31 15:04:29 +12:00
Mike Dilger
23f41ad57a Check for and print if we have lock contention starting a relay, NOTES:
I did this because gossip was hanging after a while.  I've just run it again and it did
hang and there was never any lock contention here.  So this was not the problem.

It spins a feed waiting on ALL and ANY feed you check, and if you close down, it hangs
at: Overlord waiting for minions to all shutdown

^C doesn't recover.
2024-08-31 14:50:53 +12:00
Mike Dilger
6165a7fb27 Rework manager to avoid holding a connected_relays Entry across an await point [FIXES STUTTERS] 2024-08-31 14:50:53 +12:00
Mike Dilger
20b4393778 Connect the minion in new() not handle() [CAUSES BIG STUTTERS/HANGS] 2024-08-31 14:50:53 +12:00
Mike Dilger
21e736c84b Remove an optimization (for the moment at least) 2024-08-31 14:50:53 +12:00
Mike Dilger
98f6699ba6 Minion: factor out connect() as a separate function 2024-08-31 14:50:53 +12:00
Mike Dilger
cc72b2fe9f Restructure some code to borrow less (will matter in the future) 2024-08-31 14:43:33 +12:00
Mike Dilger
1fcf64f264 Put Feed RwLocks behind Arcs (so not borrowed across await points) 2024-08-31 14:39:46 +12:00
Mike Dilger
87e195ae28 Put GLOBALS.bookmarks behind an Arc (so not borrowed across await points) 2024-08-31 14:39:46 +12:00
Mike Dilger
b062f0ba0a Put GLOBALS.minions behind an Arc (so not borrowed across await points) 2024-08-31 14:39:46 +12:00
Mike Dilger
5eb473e715 Move an Encoding borrow so it is not held across an await point 2024-08-31 14:39:46 +12:00
Mike Dilger
525508e663 Switch to a fork of tokio::sync::watch that uses parking_lot's RwLock 2024-08-31 14:39:46 +12:00
Mike Dilger
4e2f97d012 Change gossip_identity to use Arc<parking_lot::RwLock<T>> 2024-08-31 14:39:46 +12:00
Mike Dilger
fb3a200ca0 Use parking_lot 'arc_lock' and 'send_guard' features 2024-08-31 14:27:05 +12:00
Mike Dilger
fb5f73e80c Don't print verify errors 2024-08-31 14:12:30 +12:00
Mike Dilger
7c92bdd8f5 process: Replace closure 2024-08-30 11:11:18 +12:00
dtonon
ac7d114c23 Move the web sharing outside the copy menu 2024-08-28 19:57:15 +02:00
dtonon
24bc41f1b5 Uniform height of buttons to textedit 2024-08-28 16:43:45 +02:00
dtonon
f82d3c71e6 Uniform corner's radius of textedit to buttons (4px) 2024-08-28 16:42:28 +02:00
Mike Dilger
74d09c5908 LMDB: NO_SYNC (corruption only possible on file systems that don't respect write order) 2024-08-27 11:31:01 +12:00
Mike Dilger
9dad7752df Replacement of storage closures (since async closures are not supported on rust stable yet) 2024-08-27 11:20:55 +12:00
Mike Dilger
ebc25cce67 Remove read_transact and it's usages 2024-08-27 09:32:17 +12:00
Mike Dilger
2e792370b5 Remove stray file 2024-08-27 09:28:15 +12:00
Mike Dilger
203d04d37a Storage now created after static init; Storage.env no longer needs OnceLock 2024-08-24 12:54:51 +12:00
Mike Dilger
00c0c903a5 Storage is now behind a OnceLock -- Call with GLOBALS.db() 2024-08-24 12:44:24 +12:00
Mike Dilger
72a9978ec4 Comments about fns not to call from inside the tokio runtime 2024-08-23 14:53:56 +12:00
Mike Dilger
7e1d234f0e Heed: compile with read-txn-no-tls so that RoTxn is Send (NO_TLS flag was already being set) 2024-08-23 11:17:34 +12:00
Mike Dilger
5eab9f34fb Store runtime in GLOBALS 2024-08-23 06:46:44 +12:00
Mike Dilger
4e9f4e2605 rename nip46.rs to nostr_connect_server.rs 2024-08-22 10:58:18 +12:00
Mike Dilger
3a1666bf36 Improve Table related code 2024-08-22 08:25:47 +12:00
Mike Dilger
a441c8182d Fix loading more (restore the bumps) 2024-08-20 09:18:52 +12:00
Mike Dilger
ace9b9c0c2 Merge branch 'filter_set' into unstable 2024-08-19 05:18:52 +12:00
Mike Dilger
30d3461759 replace ToMinionPayloadDetail::SubscribePersonFeed, TempSubscribePersonFeedCHunk, UnsubscribePersonFeed 2024-08-19 04:50:10 +12:00
Mike Dilger
bfd3464896 replace ToMinionPayloadDetail::SubscribeInbox and TempSubscribeInboxFeedChunk 2024-08-19 04:40:27 +12:00
Mike Dilger
058ae62c20 replace ToMinionPayloadDetail::SubscribeReplies 2024-08-19 04:35:12 +12:00
Mike Dilger
a7a3dafd8e replace ToMinionPayloadDetail::SubscribeRootReplies 2024-08-19 04:33:44 +12:00
Mike Dilger
8d598796dc replace ToMinionPayloadDetail::SubscribeDmChannel 2024-08-19 04:32:42 +12:00
Mike Dilger
5877dd6dfc replace ToMinionPayloadDetail::SubscribeNip46 2024-08-19 04:31:45 +12:00
Mike Dilger
b11798b37a replace ToMinionPayloadDetail::TempSubscribeMetadata 2024-08-19 04:30:20 +12:00
Mike Dilger
3e73655901 Rewrite a bit of minion code to make next steps easier 2024-08-18 22:20:53 +12:00
Mike Dilger
bcc2ee9ca5 replace ToMinionPayloadDetail::SubscribeGlobalFeed (plus add chunking) 2024-08-18 22:19:57 +12:00
Mike Dilger
79626f8cf6 replace ToMinionPayloadDetail::SubscribeGiftwraps 2024-08-18 22:13:27 +12:00
Mike Dilger
d6b0fccba1 replace ToMinionPayloadDetail::SubscribeGeneralFeed & TempSubscribeGeneralFeedChunk 2024-08-18 22:10:32 +12:00
Mike Dilger
996e2e3b28 replace ToMinionPayloadDetail::SubscribeDiscover 2024-08-18 22:07:42 +12:00
Mike Dilger
4bda75a7f5 replace ToMinionPayloadDetail::SubscribeAugments 2024-08-18 22:07:34 +12:00