ethereum-optimism / superchain-registry

An index of chains which serves as the source of truth for who’s in the Superchain Ecosystem
MIT License
84 stars 99 forks source link

Validation: wrap local chain info maps with mutexes #669

Closed vdamle closed 2 weeks ago

vdamle commented 2 weeks ago

Checklist

ref: https://github.com/ethereum-optimism/superchain-registry/issues/668

vdamle commented 2 weeks ago

Did you consider using https://pkg.go.dev/sync#Map ?

Thanks for the suggestion, agree that's much simpler to use for this case and modified code accordingly.