Use Instance::get_locals() in ensure_local_instance_keys()
This commit is contained in:
parent
1ed60537cf
commit
a3623412f9
@ -302,8 +302,10 @@ pub fn migrate_data(dbpool: &DbPool) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn ensure_local_instance_keys(conn: &Connection) -> Result<()> {
|
fn ensure_local_instance_keys(conn: &Connection) -> Result<()> {
|
||||||
let instance = Instance::get_local()?;
|
for instance in Instance::get_locals(conn)? {
|
||||||
instance.set_keypair(conn)
|
instance.set_keypair(conn)?;
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user