Skip to content

Commit 022b0ba

Browse files
committed
Adapt signals
1 parent 3aa33a7 commit 022b0ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust/agama-storage/src/monitor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ pub enum Error {
6363
)]
6464
pub trait Storage1 {
6565
#[zbus(signal)]
66-
fn system_changed(&self) -> zbus::Result<()>;
66+
fn system_changed(&self, system: &str) -> zbus::Result<()>;
6767

6868
#[zbus(signal)]
69-
fn proposal_changed(&self) -> zbus::Result<()>;
69+
fn proposal_changed(&self, proposal: &str) -> zbus::Result<()>;
7070

7171
#[zbus(signal)]
7272
fn progress_changed(&self, progress: &str) -> zbus::Result<()>;
@@ -154,13 +154,15 @@ impl Monitor {
154154
Ok(())
155155
}
156156

157+
// TODO: add system info to the event.
157158
fn handle_system_changed(&self, _signal: SystemChanged) -> Result<(), Error> {
158159
self.events.send(Event::SystemChanged {
159160
scope: Scope::Storage,
160161
})?;
161162
Ok(())
162163
}
163164

165+
// TODO: add proposal to the event.
164166
async fn handle_proposal_changed(&self, _signal: ProposalChanged) -> Result<(), Error> {
165167
self.events.send(Event::ProposalChanged {
166168
scope: Scope::Storage,

0 commit comments

Comments
 (0)