Improvement based on feedback. See #1702
This commit is contained in:
parent
05d4a6ed38
commit
6a4d7f547c
2 changed files with 4 additions and 3 deletions
|
|
@ -51,7 +51,8 @@ object SettingsExtensionDocSpec {
|
|||
//#extension-usage-actor
|
||||
|
||||
class MyActor extends Actor {
|
||||
val connection = connect(Settings(context.system).DbUri, Settings(context.system).CircuitBreakerTimeout)
|
||||
val settings = Settings(context.system)
|
||||
val connection = connect(settings.DbUri, settings.CircuitBreakerTimeout)
|
||||
|
||||
//#extension-usage-actor
|
||||
def receive = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue