-
Notifications
You must be signed in to change notification settings - Fork 224
Conversation
@shargon Change for what? |
Add the default value, if the section exists, but the values don't |
@shargon I've already add the default values in this PR :) Or which param else do you think is need to have default value as well? |
@@ -52,7 +52,7 @@ public class StorageSettings | |||
|
|||
public StorageSettings(IConfigurationSection section) | |||
{ | |||
this.Engine = section.GetSection("Engine").Value; | |||
this.Engine = section.GetValue("Engine", "LevelDBStore"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value should be MemoryStore
. Because LevelDBStore
might be not installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikzhang But due to config.json's default settings, it's using LevelDBStore
but not MemoryStore
, or shall I modify config.json as well?
Line 4 in 605fccb
"Engine": "LevelDBStore" |
|
dotnet format please |
@shargon Could you fix this? I don't know much about it. |
Done, re-run and it works |
Close #583