Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
fix resolver initialization in ChildProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
tumb1er committed Jun 23, 2015
1 parent 10e2e18 commit 2d1a8c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dvasya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Django Views for Async APIs


VERSION = '0.9.3'
VERSION = '0.9.4'
6 changes: 4 additions & 2 deletions dvasya/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from aiohttp import websocket, web
from dvasya.logging import getLogger
from dvasya.middleware import load_middlewares
from dvasya.urls import UrlResolver
from dvasya.urls import load_resolver


class ChildProcess:
Expand All @@ -33,6 +33,8 @@ class ChildProcess:

middlewares = load_middlewares()

resolver_class = load_resolver()

def __init__(self, up_read, down_write, args, sock):
self.up_read = up_read
self.down_write = down_write
Expand All @@ -41,7 +43,7 @@ def __init__(self, up_read, down_write, args, sock):

@property
def protocol_factory(self):
app = web.Application(router=UrlResolver(),
app = web.Application(router=self.resolver_class,
loop=self.loop,
middlewares=self.middlewares,
logger=self.logger)
Expand Down

0 comments on commit 2d1a8c2

Please sign in to comment.