@@ -134,7 +134,7 @@ pub struct FutureProducerContext<C: ClientContext + 'static> {
134
134
135
135
/// Contains information about a successfully delivered message
136
136
#[ derive( Debug , PartialEq , Eq ) ]
137
- pub struct DeliveredMessage {
137
+ pub struct Delivery {
138
138
/// The partition the message was delivered to
139
139
pub partition : i32 ,
140
140
/// The offset within the partition
@@ -148,7 +148,7 @@ pub struct DeliveredMessage {
148
148
/// If message delivery was successful, returns `DeliveredMessage` containing the partition,
149
149
/// offset and timestamp. If the message failed to be delivered, returns the error and
150
150
/// an owned copy of the original message.
151
- pub type OwnedDeliveryResult = Result < DeliveredMessage , ( KafkaError , OwnedMessage ) > ;
151
+ pub type OwnedDeliveryResult = Result < Delivery , ( KafkaError , OwnedMessage ) > ;
152
152
153
153
// Delegates all the methods calls to the wrapped context.
154
154
impl < C : ClientContext + ' static > ClientContext for FutureProducerContext < C > {
@@ -192,7 +192,7 @@ where
192
192
tx : Box < oneshot:: Sender < OwnedDeliveryResult > > ,
193
193
) {
194
194
let owned_delivery_result = match * delivery_result {
195
- Ok ( ref message) => Ok ( DeliveredMessage {
195
+ Ok ( ref message) => Ok ( Delivery {
196
196
partition : message. partition ( ) ,
197
197
offset : message. offset ( ) ,
198
198
timestamp : message. timestamp ( ) ,
0 commit comments