Skip to content

Commit d2d236c

Browse files
Update pkg/rabbitmqamqp/life_cycle.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 979e615 commit d2d236c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/rabbitmqamqp/life_cycle.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ func statusToString(status ILifeCycleState) string {
6666

6767
}
6868

69-
// StateChanged define the connection life cycle
70-
// See ILifeCycleState for more details about the possible states
69+
// StateChanged defines the connection life cycle.
70+
// See ILifeCycleState for more details about the possible states.
7171
// Every time the connection state changes,
72-
// a StateChanged struct is sent to the channel defined in LifeCycle.notifyStatusChange method.
73-
// You can use it to manage your connection and react to the state changes, for example,
74-
// by blocking the publishing messages during the reconnection, ex:
75-
// <code>
72+
// a StateChanged struct is sent to the channel defined in the
73+
// LifeCycle.notifyStatusChange method.
74+
// You can use it to manage your connection and react to state changes, e.g.
75+
// by blocking message publishing during reconnection:
7676
//
7777
// signalBlock := sync.Cond{L: &sync.Mutex{}}
7878
// stateChanged := make(chan *rmq.StateChanged, 1)

0 commit comments

Comments
 (0)