File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,14 +175,10 @@ func (e *Processor) subscribe(ctx context.Context) error {
175175 return errors .Wrap (err , "failed to commit last block number" )
176176 }
177177 case newSub := <- e .update :
178- // if new update is received check if the current manager is healty, if not:
179- // update the manager and return error to force resubscribe with the new manager
180- cl , _ , err := e .sub .Raw ()
181- if err != nil {
182- e .sub = newSub
183- return err
184- }
185- cl .Client .Close ()
178+ // if new update is received then the connection is broken as noded only issues new update only if
179+ // the old manager is broken so we need to resubscribe with the new manager.
180+ e .sub = newSub
181+ return errors .New ("new substrate manager received, trying to resubscribe to the new manager" )
186182 }
187183 }
188184}
You can’t perform that action at this time.
0 commit comments