nvollmar commented on PR #493:
URL:
https://github.com/apache/pekko-persistence-cassandra/pull/493#issuecomment-5790626919
Instead of using lazy val/boolean another solution would be something like
this:
```
private var tagViewsReconciliation: Option[Reconciliation] = None
private def getTagViewsReconciliation: Reconciliation =
tagViewsReconciliation.getOrElse {
val r = new Reconciliation(
system,
new ReconciliationSettings(
system.settings.config.getConfig(pluginLocation + ".reconciler")
)
)
tagViewsReconciliation = Some(r)
r
}
....
def close(): Unit =
tagViewsReconciliation.foreach(_.close())
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]