Feature-gate bsread logic

This commit is contained in:
Dominik Werder
2023-09-01 09:47:03 +02:00
parent ca7d949fa6
commit 0d2fc7862f
32 changed files with 831 additions and 261 deletions
+6 -2
View File
@@ -25,6 +25,8 @@ impl<'a> InsertLoopFut<'a> {
where
V: ValueList + Send + Sync + 'static,
{
let _ = scy;
let _ = query;
let mut values = values;
if skip_insert {
values.clear();
@@ -34,8 +36,10 @@ impl<'a> InsertLoopFut<'a> {
// Or is it acceptable to generate all insert futures right here and poll them later?
let futs: Vec<_> = values
.into_iter()
.map(|vs| {
todo!("InsertLoopFut");
.map(|_vs| {
if true {
todo!("InsertLoopFut")
};
//let fut = scy.execute(query, vs);
let fut = futures_util::future::ready(Err(QueryError::TimeoutError));
Box::pin(fut) as _