Update client trait `post_batches` definition
Update the method definition of `post_batches` in the `Client` trait.
Method needed additional `service_id` and `wait` arguments. Additionally
the `BatchList` type was updated to
sawtooth_sdk::messages::batch::BatchList
#[cfg(feature = "client-reqwest")]
mod reqwest;
-use std::time::SystemTime;
-
+use sawtooth_sdk::messages::batch::BatchList;
use serde::{Deserialize, Serialize};
+use std::time::SystemTime;
-use crate::batches::store::BatchList;
use crate::error::InternalError;
pub trait Client {
@@ -30,7 +29,12 @@ pub trait Client {
/// # Arguments
///
/// * `batches` - The `BatchList` to be submitted
- fn post_batches(&self, batches: BatchList) -> Result<(), InternalError>;
+ fn post_batches(
+ &self,
+ batch_list: &BatchList,
+ service_id: Option<&str>,
+ wait: u64,
+ ) -> Result<(), InternalError>;
/// Retrieves the purchase order with the specified `id`.
///
