Skip to content

Commit d5bd3bd

Browse files
committed
Update services example
1 parent 96476ba commit d5bd3bd

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,10 @@ Next example demonstrates run of example application defined above:
351351
352352
if __name__ == '__main__':
353353
# Configure platform:
354-
Core.config.update({'database': {'dsn': ':memory:'},
355-
'aws': {'access_key_id': 'KEY',
356-
'secret_access_key': 'SECRET'},
357-
'auth': {'token_ttl': 3600}})
354+
Core.config.override({'database': {'dsn': ':memory:'},
355+
'aws': {'access_key_id': 'KEY',
356+
'secret_access_key': 'SECRET'},
357+
'auth': {'token_ttl': 3600}})
358358
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
359359
360360
# Run application:

docs/main/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ follows `Semantic versioning`_
1212
- Improve ``Configuration`` provider overriding logic.
1313
- Refactor ``Configuration`` provider.
1414
- Improve ``DependenciesContainer`` provider overriding logic.
15+
- Update "services" example miniapp.
1516
- Update "bundles" example miniapp.
1617

1718
3.10.0

examples/miniapps/services/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
if __name__ == '__main__':
1010
# Configure platform:
11-
Core.config.update({'database': {'dsn': ':memory:'},
12-
'aws': {'access_key_id': 'KEY',
13-
'secret_access_key': 'SECRET'},
14-
'auth': {'token_ttl': 3600}})
11+
Core.config.override({'database': {'dsn': ':memory:'},
12+
'aws': {'access_key_id': 'KEY',
13+
'secret_access_key': 'SECRET'},
14+
'auth': {'token_ttl': 3600}})
1515
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
1616

1717
# Run application:

0 commit comments

Comments
 (0)