node: ether block pollers need to wrap their supervisor runs
This commit is contained in:
parent
ff7273cc5d
commit
588d7e629a
|
@ -33,7 +33,7 @@ type LogPollConnector struct {
|
|||
func NewLogPollConnector(ctx context.Context, baseConnector Connector, client *ethClient.Client) (*LogPollConnector, error) {
|
||||
connector := &LogPollConnector{Connector: baseConnector, client: client}
|
||||
// The supervisor will keep the poller running
|
||||
err := supervisor.Run(ctx, "logPoller", connector.run)
|
||||
err := supervisor.Run(ctx, "logPoller", common.WrapWithScissors(connector.run, "logPoller"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ func NewBlockPollConnector(ctx context.Context, baseConnector Connector, finaliz
|
|||
publishSafeBlocks: publishSafeBlocks,
|
||||
finalizer: finalizer,
|
||||
}
|
||||
err := supervisor.Run(ctx, "blockPoller", connector.runFromSupervisor)
|
||||
err := supervisor.Run(ctx, "blockPoller", common.WrapWithScissors(connector.runFromSupervisor, "blockPoller"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue