Commit 9290781
committed
fix: Fix database initialization order to prevent nil pointer crash
- Initialize config before database to prevent nil cfg.DatabaseType access
- Ensures proper initialization sequence: config -> database -> config.InitWithDB()
- Fixes segmentation fault in CI/CD pipeline during startup
- Related to v1.3.0 release deployment1 parent 63ae89d commit 9290781
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
86 | | - | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments