File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,11 @@ impl ConsumerBuilder {
132
132
133
133
let collector = self . environment . options . client_options . collector . clone ( ) ;
134
134
135
- let client_uwrapped = self
135
+ let client = self
136
136
. environment
137
137
. create_consumer_client ( stream, self . client_provided_name . clone ( ) )
138
138
. await ?;
139
139
140
- let client = client_uwrapped. clone ( ) ;
141
-
142
140
let subscription_id = 1 ;
143
141
let ( tx, rx) = channel ( 10000 ) ;
144
142
let consumer = Arc :: new ( ConsumerInternal {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl Environment {
39
39
Ok ( Environment { options } )
40
40
}
41
41
42
- pub async fn create_producer_client (
42
+ pub ( crate ) async fn create_producer_client (
43
43
self ,
44
44
stream : & str ,
45
45
client_provided_name : String ,
@@ -91,7 +91,7 @@ impl Environment {
91
91
Ok ( client)
92
92
}
93
93
94
- pub async fn create_consumer_client (
94
+ pub ( crate ) async fn create_consumer_client (
95
95
self ,
96
96
stream : & str ,
97
97
client_provided_name : String ,
Original file line number Diff line number Diff line change @@ -120,13 +120,11 @@ impl<T> ProducerBuilder<T> {
120
120
121
121
let metrics_collector = self . environment . options . client_options . collector . clone ( ) ;
122
122
123
- let client_unwrapped = self
123
+ let client = self
124
124
. environment
125
125
. create_producer_client ( stream, self . client_provided_name . clone ( ) )
126
126
. await ?;
127
127
128
- let client = client_unwrapped;
129
-
130
128
let mut publish_version = 1 ;
131
129
132
130
if self . filter_value_extractor . is_some ( ) {
You can’t perform that action at this time.
0 commit comments