We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07dde62 commit 69709e2Copy full SHA for 69709e2
channels/channels.go
@@ -89,6 +89,11 @@ func (c *Channels) Start(ctx context.Context) error {
89
return c.migrateStateMachines(ctx)
90
}
91
92
+// Stop stops the channel statemachine
93
+func (c *Channels) Stop(ctx context.Context) error {
94
+ return c.stateMachines.Stop(ctx)
95
+}
96
+
97
func (c *Channels) dispatch(eventName fsm.EventName, channel fsm.StateType) {
98
evtCode, ok := eventName.(datatransfer.EventCode)
99
if !ok {
impl/impl.go
@@ -165,6 +165,7 @@ func (m *manager) Stop(ctx context.Context) error {
165
m.spansIndex.EndAll()
166
m.transportOptions.ClearAll()
167
m.channelSubscriptions.Stop()
168
+ m.channels.Stop(ctx)
169
return m.transport.Shutdown(ctx)
170
171
0 commit comments