Gate it behind feature flags

This commit is contained in:
Sasha Krassovsky
2024-01-18 02:30:06 +00:00
committed by Sasha Krassovsky
parent 0a7e050144
commit 71f495c7f7
5 changed files with 20 additions and 7 deletions

View File

@@ -744,10 +744,12 @@ impl ComputeNode {
// 'Close' connection
drop(client);
thread::spawn(move || {
let mut client = Client::connect(connstr.as_str(), NoTls)?;
handle_migrations(&mut client)
});
if self.has_feature(ComputeFeature::Migrations) {
thread::spawn(move || {
let mut client = Client::connect(connstr.as_str(), NoTls)?;
handle_migrations(&mut client)
});
}
Ok(())
}