refactor: prevent direct access to struct Config fields
Make struct Config fields private and introduces getter methods to access them. This will make it easier to change the CI broker to be able to run different adapters for different changes.
Signed-off-by: Lars Wirzenius liw@liw.fi
2 files changed
+45
-27
30fcabba
→
47f77639
modified src/bin/cib.rs
@@ -83,7 +83,7 @@ impl Args {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -150,7 +150,7 @@ impl InsertCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -175,12 +175,11 @@ impl QueuedCmd {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -201,7 +200,7 @@ impl QueuedCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -213,7 +212,7 @@ impl QueuedCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -249,7 +248,7 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -259,7 +258,7 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -271,12 +270,11 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -287,7 +285,7 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/config.rs
@@ -17,20 +17,20 @@ const DEFAULT_STATUS_PAGE_UPDATE_INTERVAL: u64 = 10;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -48,6 +48,22 @@ impl Config {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -61,6 +77,10 @@ impl Config {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|