feat: simple dock layout

This commit is contained in:
2025-12-13 09:20:36 +07:00
parent 703fe988bd
commit af740f462c
12 changed files with 238 additions and 37 deletions

View File

@@ -9,6 +9,7 @@ common = { path = "../common" }
nostr-sdk.workspace = true
nostr-lmdb.workspace = true
nostr-gossip-memory.workspace = true
gpui.workspace = true
smol.workspace = true

View File

@@ -2,6 +2,7 @@ use std::time::Duration;
use common::{config_dir, BOOTSTRAP_RELAYS, SEARCH_RELAYS};
use gpui::{App, AppContext, Context, Entity, Global, Task};
use nostr_gossip_memory::prelude::*;
use nostr_lmdb::NostrLmdb;
use nostr_sdk::prelude::*;
use smallvec::{smallvec, SmallVec};
@@ -61,7 +62,11 @@ impl NostrRegistry {
});
// Construct the nostr client
let client = ClientBuilder::default().database(lmdb).opts(opts).build();
let client = ClientBuilder::default()
.database(lmdb)
.gossip(NostrGossipMemory::unbounded())
.opts(opts)
.build();
let mut tasks = smallvec![];