Skip to content

Commit ca3170a

Browse files
author
Vincent Rouillé
committed
fix bindingtester build with fdb610
1 parent e4cd9ff commit ca3170a

File tree

1 file changed

+12
-5
lines changed
  • foundationdb-bindingtester/src

1 file changed

+12
-5
lines changed

foundationdb-bindingtester/src/main.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,11 +1198,18 @@ impl StackMachine {
11981198
// limits, so these bindings can obtain different sizes back.
11991199
GetApproximateSize => {
12001200
debug!("get_approximate_size");
1201-
trx.as_mut()
1202-
.get_approximate_size()
1203-
.await
1204-
.expect("failed to get approximate size");
1205-
self.push(number, GOT_APPROXIMATE_SIZE.clone().into_owned());
1201+
#[cfg(feature = "fdb-6_2")]
1202+
{
1203+
trx.as_mut()
1204+
.get_approximate_size()
1205+
.await
1206+
.expect("failed to get approximate size");
1207+
self.push(number, GOT_APPROXIMATE_SIZE.clone().into_owned());
1208+
}
1209+
#[cfg(not(feature = "fdb-6_2"))]
1210+
{
1211+
unimplemented!("get_approximate_size requires fdb620+");
1212+
}
12061213
}
12071214

12081215
// Pops the top item off the stack and pushes it back on. If the top item on

0 commit comments

Comments
 (0)