@@ -11,7 +11,7 @@ use std::{
11
11
use serde:: Deserialize ;
12
12
use shellexpand:: LookupError ;
13
13
use svix_bridge_plugin_queue:: config:: {
14
- into_receiver_output, QueueConsumerConfig , ReceiverOutputOpts as QueueOutOpts ,
14
+ into_receiver_output, QueueSenderConfig , ReceiverOutputOpts as QueueOutOpts ,
15
15
} ;
16
16
use svix_bridge_types:: { ReceiverInputOpts , ReceiverOutput , SenderInput , TransformationConfig } ;
17
17
use tracing:: Level ;
@@ -150,18 +150,18 @@ pub enum SenderConfig {
150
150
feature = "redis" ,
151
151
feature = "sqs"
152
152
) ) ]
153
- QueueConsumer ( QueueConsumerConfig ) ,
153
+ Queue ( QueueSenderConfig ) ,
154
154
}
155
155
156
156
impl SenderConfig {
157
157
pub fn name ( & self ) -> & str {
158
158
match self {
159
- SenderConfig :: QueueConsumer ( cfg) => & cfg. name ,
159
+ SenderConfig :: Queue ( cfg) => & cfg. name ,
160
160
}
161
161
}
162
162
pub fn transformation ( & self ) -> Option < & TransformationConfig > {
163
163
match self {
164
- SenderConfig :: QueueConsumer ( cfg) => cfg. transformation . as_ref ( ) ,
164
+ SenderConfig :: Queue ( cfg) => cfg. transformation . as_ref ( ) ,
165
165
}
166
166
}
167
167
}
@@ -176,7 +176,7 @@ impl TryFrom<SenderConfig> for Box<dyn SenderInput> {
176
176
feature = "redis" ,
177
177
feature = "sqs"
178
178
) ) ]
179
- SenderConfig :: QueueConsumer ( backend) => backend. into_sender_input ( ) ,
179
+ SenderConfig :: Queue ( backend) => backend. into_sender_input ( ) ,
180
180
}
181
181
}
182
182
}
@@ -199,13 +199,13 @@ pub enum ReceiverOut {
199
199
feature = "redis" ,
200
200
feature = "sqs"
201
201
) ) ]
202
- QueueProducer ( QueueOutOpts ) ,
202
+ Queue ( QueueOutOpts ) ,
203
203
}
204
204
205
205
impl ReceiverConfig {
206
206
pub async fn into_receiver_output ( self ) -> std:: io:: Result < Box < dyn ReceiverOutput > > {
207
207
match self . output {
208
- ReceiverOut :: QueueProducer ( x) => {
208
+ ReceiverOut :: Queue ( x) => {
209
209
into_receiver_output ( self . name . clone ( ) , x, self . transformation . as_ref ( ) )
210
210
. await
211
211
. map_err ( Into :: into)
0 commit comments