Skip to content

Commit a0bf21a

Browse files
committed
Change topology recovery default to only transient
As per conversation with @Gsantomaggio We want the default topology recovery to only recover transient topology
1 parent e5c0204 commit a0bf21a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/rabbitmqamqp/amqp_connection.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ func (o OAuth2Options) Clone() *OAuth2Options {
4646
}
4747

4848
// TopologyRecoveryOptions is used to configure the topology recovery behavior of the connection.
49-
// See [TopologyRecoveryDisabled], [TopologyRecoveryOnlyTransientQueues], and [TopologyRecoveryAllEnabled] for more information.
49+
// See [TopologyRecoveryDisabled], [TopologyRecoveryOnlyTransient], and [TopologyRecoveryAllEnabled] for more information.
5050
type TopologyRecoveryOptions byte
5151

5252
const (
53-
// TopologyRecoveryDisabled disables the topology recovery.
54-
TopologyRecoveryDisabled TopologyRecoveryOptions = iota
55-
// TopologyRecoveryOnlyTransientQueues recovers only queues declared as exclusive and/or auto delete, and
53+
// TopologyRecoveryOnlyTransient recovers only queues declared as exclusive and/or auto delete, and
5654
// related bindings. Exchanges are not recovered.
57-
TopologyRecoveryOnlyTransientQueues
55+
TopologyRecoveryOnlyTransient TopologyRecoveryOptions = iota
56+
// TopologyRecoveryDisabled disables the topology recovery.
57+
TopologyRecoveryDisabled
5858
// TopologyRecoveryAllEnabled recovers all the topology. All exchanges, queues, and bindings are recovered.
5959
TopologyRecoveryAllEnabled
6060
)

0 commit comments

Comments
 (0)