Skip to content

Commit cc6331d

Browse files
authored
Merge pull request apache#599 from LutzSteinborn/master
cassandra_init() added **kwargs
2 parents 050555a + 079d2a3 commit cc6331d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/cqlengine/third_party.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here's how, in substance, CQLengine can be plugged to `Celery
1717
from cqlengine.connection import (
1818
cluster as cql_cluster, session as cql_session)
1919
20-
def cassandra_init():
20+
def cassandra_init(**kwargs):
2121
""" Initialize a clean Cassandra connection. """
2222
if cql_cluster is not None:
2323
cql_cluster.shutdown()
@@ -52,7 +52,7 @@ This is the code required for proper connection handling of CQLengine for a
5252
pass
5353
else:
5454
@postfork
55-
def cassandra_init():
55+
def cassandra_init(**kwargs):
5656
""" Initialize a new Cassandra session in the context.
5757
5858
Ensures that a new session is returned for every new request.

0 commit comments

Comments
 (0)