Permalink
Browse files

Move the creation of the configuration to a more natural location

  • Loading branch information...
1 parent fafe957 commit 94cc984fda82ef3ba558f5fdfcd69b45486dcd93 @ayende ayende committed Oct 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Raven.Web/ForwardToRavenRespondersFactory.cs
@@ -14,7 +14,7 @@ public class ForwardToRavenRespondersFactory : IHttpHandlerFactory
{
private static readonly object locker = new object();
- static readonly RavenConfiguration ravenConfiguration = new RavenConfiguration();
+ static readonly RavenConfiguration ravenConfiguration;
static readonly DocumentDatabase database;
static readonly HttpServer server;
@@ -25,7 +25,7 @@ static ForwardToRavenRespondersFactory()
if (database != null)
return;
-
+ ravenConfiguration = new RavenConfiguration();
HttpServer.RegisterHttpEndpointTarget();
database = new DocumentDatabase(ravenConfiguration);
database.SpinBackgroundWorkers();

0 comments on commit 94cc984

Please sign in to comment.