File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -157,20 +157,14 @@ start(AmqpParams) ->
157
157
% % user specified connection name.
158
158
start (AmqpParams , ConnName ) when ConnName == undefined ; is_binary (ConnName ) ->
159
159
ensure_started (),
160
- ObfuscateFn = fun credentials_obfuscation :encrypt /1 ,
161
- ToPropList = fun rabbit_data_coercion :to_proplist /1 ,
162
160
AmqpParams0 =
163
161
case AmqpParams of
164
162
# amqp_params_direct {password = Password , client_properties = Props } ->
165
- AmqpParams # amqp_params_direct {
166
- password = ObfuscateFn (Password ),
167
- client_properties = ToPropList (Props )
168
- };
163
+ AmqpParams # amqp_params_direct {password = credentials_obfuscation :encrypt (Password ),
164
+ client_properties = rabbit_data_coercion :to_proplist (Props )};
169
165
# amqp_params_network {password = Password , client_properties = Props } ->
170
- AmqpParams # amqp_params_network {
171
- password = ObfuscateFn (Password ),
172
- client_properties = ToPropList (Props )
173
- }
166
+ AmqpParams # amqp_params_network {password = credentials_obfuscation :encrypt (Password ),
167
+ client_properties = rabbit_data_coercion :to_proplist (Props )}
174
168
end ,
175
169
AmqpParams1 =
176
170
case AmqpParams0 of
You can’t perform that action at this time.
0 commit comments