Implement native RLV callback service integration (#80)
This commit is contained in:
@@ -305,7 +305,7 @@ impl IRlvQueryCallbacks for RecordingQueries {
|
||||
&self,
|
||||
_: CancellationToken,
|
||||
) -> QueryFuture<'_, (bool, Option<InventoryMap>)> {
|
||||
let value = self.0.lock().unwrap().inventory_map.take();
|
||||
let value = self.0.lock().unwrap().inventory_map.clone();
|
||||
Box::pin(async move { Ok((value.is_some(), value)) })
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ impl RlvHarness {
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns the standardized constructor error while the public RLV service is a shim.
|
||||
/// Returns an error if the native RLV service cannot be initialized.
|
||||
pub fn new() -> Result<Self, Error> {
|
||||
let action_callbacks = RecordingActions::default();
|
||||
let query_callbacks = RecordingQueries::default();
|
||||
|
||||
Reference in New Issue
Block a user