Skip to content

Commit

Permalink
Use OS Cache through flush on LiteDBStore's ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
longfin committed Oct 23, 2019
1 parent 69bbf63 commit 6b41ed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Libplanet.Explorer.Executable/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ public static async Task Main(string[] args)
.WriteTo.Console();
Log.Logger = loggerConfig.CreateLogger();

IStore store = new LiteDBStore(options.StorePath, readOnly: options.Seed is null);
IStore store = new LiteDBStore(
path: options.StorePath,
flush: false,
readOnly: options.Seed is null
);
IBlockPolicy<AppAgnosticAction> policy = new BlockPolicy<AppAgnosticAction>(
null,
blockIntervalMilliseconds: options.BlockIntervalMilliseconds,
Expand Down

0 comments on commit 6b41ed6

Please sign in to comment.