Skip to content

Commit

Permalink
Update placement of monitor code for pricefeed client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal Lemire committed Nov 22, 2023
1 parent a26109a commit 0c91c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ func New(

// Non-validating full-nodes have no need to run the price daemon.
if !appFlags.NonValidatingFullNode && daemonFlags.Price.Enabled {
app.MonitorDaemon(app.PriceFeedClient, MaximumDaemonUnhealthyDuration)
exchangeQueryConfig := constants.StaticExchangeQueryConfig
// Start pricefeed client for sending prices for the pricefeed server to consume. These prices
// are retrieved via third-party APIs like Binance and then are encoded in-memory and
Expand All @@ -646,6 +645,7 @@ func New(
constants.StaticExchangeDetails,
&pricefeedclient.SubTaskRunnerImpl{},
)
app.MonitorDaemon(app.PriceFeedClient, MaximumDaemonUnhealthyDuration)
}

// Start Bridge Daemon.
Expand Down

0 comments on commit 0c91c09

Please sign in to comment.