Skip to content

Commit 36ee349

Browse files
committed
Update audit comment
1 parent 52926a9 commit 36ee349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceControl.Audit.Persistence.RavenDB/MemoryInformationRetriever.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class MemoryInformationRetriever(DatabaseConfiguration databaseConfiguration)
1111
// Connection string is composed of the server URL. The ?? operator is needed because ServerUrl
1212
// is populated when running embedded and connection string when running in external mode.
1313
// However, the tricky part is that when tests are run they behave like if it was external mode.
14-
// ServerUrl is always populated by the persister settings, hence the code first checks for the
15-
// presence of a connection string, and if null, falls back to ServerUrl
14+
// Only one of ConnectionString and ServerUrl will be non-null, so we'll check ConnectionString first
15+
// to be consistent with the error instance implementation, where ServerUrl always has a value.
1616
readonly HttpClient client = new() { BaseAddress = new Uri(databaseConfiguration.ServerConfiguration.ConnectionString ?? databaseConfiguration.ServerConfiguration.ServerUrl) };
1717

1818
record ResponseDto

0 commit comments

Comments
 (0)