Commit d894af9
fix: Check database connectivity only once
To avoid strain on the database, check connectivity only once on instance start (`lazy val`).
We should see the log line exactly once per instance, regardless of how often the healthcheck endpoint is queried.
Co-authored-by: Julia <JuliaBrigitte@users.noreply.github.com>1 parent e462e3e commit d894af9
File tree
2 files changed
+4
-2
lines changed- common/src/main/scala/db
- registration/app/registration/controllers
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments