lucid-kv / lucid

High performance and distributed KV store w/ REST API. 🦀

Home Page:https://clintnetwork.gitbook.io/lucid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent Yaml Parsing Crash

imclint21 opened this issue · comments

If we can add configure serde_yaml to don't crash when we have missing configuration section if could be great 👌🏼

@CephalonRho I tried to fix this. Do you remember what you said?

commented

I have no idea what I said, but I implemented this in b92b8f1.
There still needs to be at least 1 configuration key in config.yml for it to be parsed properly. I'm not too familiar with yaml, so I'm not sure if it's because of the format itself or a bug in serde_yaml, but it's now possible to add new sections and keys without breaking previous setups.

Oh really good