Skip to content

Commit

Permalink
Move the creation of the configuration to a more natural location
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Oct 18, 2011
1 parent fafe957 commit 94cc984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Raven.Web/ForwardToRavenRespondersFactory.cs
Expand Up @@ -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;

Expand All @@ -25,7 +25,7 @@ static ForwardToRavenRespondersFactory()
if (database != null)
return;


ravenConfiguration = new RavenConfiguration();
HttpServer.RegisterHttpEndpointTarget();
database = new DocumentDatabase(ravenConfiguration);
database.SpinBackgroundWorkers();
Expand Down

0 comments on commit 94cc984

Please sign in to comment.