mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
Merge branch 'next/minor' of github.com:Start9Labs/start-os into next/major
This commit is contained in:
@@ -114,7 +114,8 @@ pub async fn zram(ctx: RpcContext, ZramParams { enable }: ZramParams) -> Result<
|
||||
.ser(&enable)?;
|
||||
Ok(())
|
||||
})
|
||||
.await?;
|
||||
.await
|
||||
.result?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -170,7 +171,8 @@ pub async fn governor(
|
||||
.as_governor_mut()
|
||||
.ser(&Some(set))
|
||||
})
|
||||
.await?;
|
||||
.await
|
||||
.result?;
|
||||
}
|
||||
let current = ctx
|
||||
.db
|
||||
@@ -911,7 +913,8 @@ pub async fn set_system_smtp(ctx: RpcContext, smtp: SmtpValue) -> Result<(), Err
|
||||
.as_smtp_mut()
|
||||
.ser(&smtp)
|
||||
})
|
||||
.await?;
|
||||
.await
|
||||
.result?;
|
||||
if let Some(callbacks) = ctx.callbacks.get_system_smtp() {
|
||||
callbacks.call(vector![to_value(&smtp)?]).await?;
|
||||
}
|
||||
@@ -925,7 +928,8 @@ pub async fn clear_system_smtp(ctx: RpcContext) -> Result<(), Error> {
|
||||
.as_smtp_mut()
|
||||
.ser(&None)
|
||||
})
|
||||
.await?;
|
||||
.await
|
||||
.result?;
|
||||
if let Some(callbacks) = ctx.callbacks.get_system_smtp() {
|
||||
callbacks.call(vector![Value::Null]).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user