Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Nov 21, 2023
1 parent 9a5e6c3 commit 7c900bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NineChronicles.DataProvider.Executable/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ IActionEvaluatorConfiguration GetActionEvaluatorConfiguration(IConfiguration con
RpcRemoteSever = false
},
new ConcurrentDictionary<string, Sentry.ITransaction>(),
new ArenaMemoryCache()
new StateMemoryCache()
);

if (headlessConfig.LogActionRenders)
Expand All @@ -250,7 +250,7 @@ IActionEvaluatorConfiguration GetActionEvaluatorConfiguration(IConfiguration con
var stateContext = new StateContext(
context.BlockChain!.GetAccountState(context.BlockChain!.Tip.Hash),
context.BlockChain!.Tip.Index,
new ArenaMemoryCache()
new StateMemoryCache()
);

// ConfigureServices must come before Configure for now
Expand Down
2 changes: 1 addition & 1 deletion NineChronicles.DataProvider.Tests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected TestBase()
{
KeyStore = keyStore,
};
var stateContext = new StateContext(GetMockState(), 0L, new ArenaMemoryCache());
var stateContext = new StateContext(GetMockState(), 0L, new StateMemoryCache());
services
.AddSingleton(standaloneContext)
.AddSingleton(stateContext)
Expand Down
2 changes: 1 addition & 1 deletion NineChronicles.DataProvider/GraphQLStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void ConfigureServices(IServiceCollection services)
.AddGraphTypes(typeof(StandaloneSchema))
.AddLibplanetExplorer()
.AddUserContextBuilder<UserContextBuilder>();
services.AddSingleton<ArenaMemoryCache>();
services.AddSingleton<StateMemoryCache>();
services.AddGraphTypes();
services.AddSingleton<NineChroniclesSummarySchema>();
services.AddSingleton<StandaloneSchema>();
Expand Down

0 comments on commit 7c900bc

Please sign in to comment.