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<()> {
|
||||
let instance = Instance::get_local()?;
|
||||
instance.set_keypair(conn)
|
||||
for instance in Instance::get_locals(conn)? {
|
||||
instance.set_keypair(conn)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user