File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments