Fix typo in class scheduling Python example

This commit is contained in:
Saurabh Chaturvedi 2020-01-18 18:58:40 +05:30
parent 389ea1ca64
commit cd4ddfe95b
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ If instead you pass a :class:`Transaction` for the ``tr`` parameter, the transac
Note that by default, the operation will be retried an infinite number of times and the transaction will never time out. It is therefore recommended that the client choose a default transaction retry limit or timeout value that is suitable for their application. This can be set either at the transaction level using the ``set_retry_limit`` or ``set_timeout`` transaction options or at the database level with the ``set_transaction_retry_limit`` or ``set_transaction_timeout`` database options. For example, one can set a one minute timeout on each transaction and a default retry limit of 100 by calling::
db.options.set_transaction_timeout(60000) # 60,000 ms = 1 minute
db.options.set_retry_limit(100)
db.options.set_transaction_retry_limit(100)
Making some sample classes
--------------------------
@ -350,7 +350,7 @@ Here's the code for the scheduling tutorial::
db = fdb.open()
db.options.set_transaction_timeout(60000) # 60,000 ms = 1 minute
db.options.set_retry_limit(100)
db.options.set_transaction_retry_limit(100)
scheduling = fdb.directory.create_or_open(db, ('scheduling',))
course = scheduling['class']
attends = scheduling['attends']