Skip to content

Commit

Permalink
Add comment explaining why the code lives inside the newServicesGener…
Browse files Browse the repository at this point in the history
…icPlugin method
  • Loading branch information
george-dorin committed Nov 10, 2023
1 parent 3649c4c commit ba27d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ func (d *Delegate) newServicesGenericPlugin(
if ok {
providerClientConn = providerConn.ClientConn()
} else {
//We chose to deal with the difference between a LOOP provider and an embedded provider here rather than in NewServerAdapter because this has a smaller blast radius, as the scope of this workaround is to enable the medianpoc for EVM and not touch the other providers.
//TODO: remove this workaround when the EVM relayer is running inside of an LOOPP
d.lggr.Info("provider is not a LOOPP provider, switching to provider server")

ps, err := relay.NewProviderServer(provider, types.OCR2PluginType(cconf.ProviderType), d.lggr)
Expand Down

0 comments on commit ba27d76

Please sign in to comment.