Skip to content
Browse files

Update Motor-Blog for MotorConnection->MotorClient rename

  • Loading branch information...
1 parent 3ec73d8 commit 0c91d721a2bdb108cbf9c629542c9a8c0579bd02 @ajdavis committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 motor_blog/cache.py
  2. +2 −2 server.py
View
2 motor_blog/cache.py
@@ -24,7 +24,7 @@ def create_events_collection(db):
"""Pass in MotorDatabase, create capped collection synchronously at
startup
"""
- sync_cx = db.connection.sync_connection()
+ sync_cx = db.connection.sync_client()
sync_db = sync_cx[db.name]
try:
# Size is in bytes; event documents are rare and very small
View
4 server.py
@@ -44,12 +44,12 @@
opts = options.options()
# TODO: Mongo connection options
- db = motor.MotorConnection().open_sync().motorblog
+ db = motor.MotorClient().open_sync().motorblog
cache.startup(db)
if opts.rebuild_indexes or opts.ensure_indexes:
indexes.ensure_indexes(
- db.connection.sync_connection().motorblog,
+ db.connection.sync_client().motorblog,
opts.rebuild_indexes)
base_url = opts.base_url

0 comments on commit 0c91d72

Please sign in to comment.
Something went wrong with that request. Please try again.