File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/ServiceControl.Audit.Persistence.RavenDB Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments