Remove SawtoothMessageSender
This is no longer necessary since we are no longer
using Actix handlers for submitting batches and is replaced by
BatchSubmitter
@@ -28,8 +28,7 @@ pub use schemas::*;
use crate::database::ConnectionPool;
-use actix::{Actor, Context, SyncContext};
-use sawtooth_sdk::messaging::stream::MessageSender;
+use actix::{Actor, SyncContext};
pub struct DbExecutor {
connection_pool: ConnectionPool,
@@ -45,20 +44,6 @@ impl DbExecutor {
}
}
-pub struct SawtoothMessageSender {
- sender: Box<dyn MessageSender>,
-}
-
-impl Actor for SawtoothMessageSender {
- type Context = Context<Self>;
-}
-
-impl SawtoothMessageSender {
- pub fn new(sender: Box<dyn MessageSender>) -> SawtoothMessageSender {
- SawtoothMessageSender { sender }
- }
-}
-
#[cfg(all(feature = "test-api", test))]
mod test {
use super::*;
