Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Mar 15, 2024
1 parent 8417dbc commit a5a786e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/Nexus/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
ConfigurePipeline(app);

// initialize app state
await InitializeAppAsync(app.Services, pathsOptions, securityOptions, app.Logger);
await InitializeAppAsync(app.Services, pathsOptions, app.Logger);

// Run
app.Run();
Expand Down Expand Up @@ -258,7 +258,6 @@ void ConfigurePipeline(WebApplication app)
async Task InitializeAppAsync(
IServiceProvider serviceProvider,
PathsOptions pathsOptions,
SecurityOptions securityOptions,
ILogger logger)
{
var appState = serviceProvider.GetRequiredService<AppState>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@ internal static int CalculateElementCount(DateTime begin, DateTime end, TimeSpan
{
return (int)((end.Ticks - begin.Ticks) / samplePeriod.Ticks);
}

internal static DateTime RoundDown(DateTime dateTime, TimeSpan timeSpan)
{
return new DateTime(dateTime.Ticks - (dateTime.Ticks % timeSpan.Ticks), dateTime.Kind);
}
}

0 comments on commit a5a786e

Please sign in to comment.