Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Dec 16, 2024
1 parent c1ab6e2 commit 4b1cee2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/_common/Observables/StreamHub.Observer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public void OnRebuild(DateTime fromTimestamp)
/// <inheritdoc/>
public void OnPrune(DateTime toTimestamp)
{
while (Cache.Count > 0 && Cache[0].Timestamp <= toTimestamp){
while (Cache.Count > 0 && Cache[0].Timestamp <= toTimestamp)
{
Cache.RemoveAt(0);
}

Expand Down
3 changes: 2 additions & 1 deletion src/_common/Quotes/Quote.StreamHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public class QuoteHub<TQuote>
/// </summary>
/// <param name="maxCacheSize">Maximum in-memory cache size.</param>
public QuoteHub(int? maxCacheSize = null)
: base(new BaseProvider<TQuote>()) {
: base(new BaseProvider<TQuote>())
{

const int maxCacheSizeDefault = (int)(0.9 * int.MaxValue);

Expand Down

0 comments on commit 4b1cee2

Please sign in to comment.