mirage / irmin

Irmin is a distributed database that follows the same design principles as Git
https://irmin.org
ISC License
1.83k stars 154 forks source link

irmin: raise exception on duplicate Conf key name #2252

Closed metanivek closed 1 year ago

metanivek commented 1 year ago

This bit me while working on the memory-bounded LRU (no, I obviously did not copy-pasta an existing key 🫣).

I don't think there is a valid use case for calling key twice with the same name but different types, and it can result in annoying to debug runtime behavior since it will silently return the default value for the overwritten key.