Skip to content

Commit

Permalink
Updated examples to be compatible with current implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
akubera committed Oct 16, 2016
1 parent fa6ff79 commit 49b8d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/example0/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import asyncio

from growler import (App)
from growler.aio import GrowlerHTTPProtocol
from growler.middleware import (
Logger,
StringRenderer,
Expand Down Expand Up @@ -50,7 +51,7 @@ def error_handler(req, res, err):
'port': 8000,
}

make_server = loop.create_server(app._protocol_factory(app), **server_params)
make_server = loop.create_server(lambda: GrowlerHTTPProtocol(app), **server_params)
loop.run_until_complete(make_server)

loop.run_forever()
2 changes: 1 addition & 1 deletion examples/example3/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

from growler import App
from growler.router import routerclass
from growler.core.router import routerclass


@routerclass
Expand Down

0 comments on commit 49b8d61

Please sign in to comment.