Replace zed::watch with postage::watch for settings

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-05-06 15:27:18 -06:00
co-authored by Max Brunsfeld
parent ab10e27424
commit 4eac765f1a
8 changed files with 27 additions and 99 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::watch;
use anyhow::Result;
use gpui::font_cache::{FamilyId, FontCache};
use postage::watch;
#[derive(Clone)]
pub struct Settings {
@@ -26,5 +26,5 @@ impl Settings {
pub fn channel(
font_cache: &FontCache,
) -> Result<(watch::Sender<Settings>, watch::Receiver<Settings>)> {
Ok(watch::channel(Settings::new(font_cache)?))
Ok(watch::channel_with(Settings::new(font_cache)?))
}