File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
projects/RabbitMQ.Client/client/impl Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,11 @@ internal void DeleteRecordedBinding(in RecordedBinding rb)
176
176
177
177
internal void RecordConsumer ( in RecordedConsumer consumer )
178
178
{
179
+ if ( ! _factory . TopologyRecoveryEnabled )
180
+ {
181
+ return ;
182
+ }
183
+
179
184
lock ( _recordedEntitiesLock )
180
185
{
181
186
_recordedConsumers [ consumer . ConsumerTag ] = consumer ;
@@ -184,6 +189,11 @@ internal void RecordConsumer(in RecordedConsumer consumer)
184
189
185
190
internal void DeleteRecordedConsumer ( string consumerTag )
186
191
{
192
+ if ( ! _factory . TopologyRecoveryEnabled )
193
+ {
194
+ return ;
195
+ }
196
+
187
197
lock ( _recordedEntitiesLock )
188
198
{
189
199
if ( _recordedConsumers . Remove ( consumerTag , out var recordedConsumer ) )
You can’t perform that action at this time.
0 commit comments