Skip to content

Commit

Permalink
#20 trying compile flag for ScanConsistency in comments data Comments…
Browse files Browse the repository at this point in the history
…DataService
  • Loading branch information
mgroves committed Sep 25, 2023
1 parent 89268a9 commit 2445ab8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Conduit/Conduit.Web/Articles/Services/CommentsDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ public class CommentsDataService : ICommentsDataService
private readonly IConduitCommentsCollectionProvider _commentsCollectionProvider;

// a virtual method so it can be overridden by a testing class if necessary
#if DEBUG
protected virtual QueryScanConsistency ScanConsistency => QueryScanConsistency.RequestPlus;
#else
protected virtual QueryScanConsistency ScanConsistency => QueryScanConsistency.NotBounded;
#endif

public static string GetCommentsKey(string articleKey) => $"{articleKey}::comments";

Expand Down

0 comments on commit 2445ab8

Please sign in to comment.