Skip to content

Commit

Permalink
properly initialize the ccipplugin maps
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAustinWang committed Nov 1, 2024
1 parent 9d7bff3 commit bb8b3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/capabilities/ccip/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *launcher) processUpdate(updated map[registrysyncer.DonID]registrysyncer
// If a config digest is not already in our list, we need to create an oracle
// If a config digest is already in our list, we just need to point to the old one
// newP.Transition will make sure we shut down the old oracles, and start the new ones
var newP = make(ccipPlugins)
newP := make(ccipPlugins)
for _, c := range latestConfigs {
digest := c.ConfigDigest
if digest != [32]byte{} && prevPlugins[digest] == nil {
Expand Down Expand Up @@ -312,7 +312,7 @@ func createDON(
lggr.Infow("Not a member of this DON and not a bootstrap node either, skipping", "donId", don.ID, "p2pId", p2pID.String())
return nil, nil
}
var p ccipPlugins
p := make(ccipPlugins)
for _, config := range configs {
digest, err := ocrtypes.BytesToConfigDigest(config.ConfigDigest[:])
if err != nil {
Expand Down

0 comments on commit bb8b3c5

Please sign in to comment.