Commit 615a357
authored
fix: syncproxy module does not reload config file (#1606)
### Motivation
An user reported that the `modules reload CloudNet-SyncProxy` command
would reload the SyncProxy module but the module would not update the
loaded configuration due to a wrongly placed `@Service` annotation.
### Modification
Removed the wrong `@Service` annotation and the unnecessary null check.
The management class is created by aerogel. If aerogel cannot find it /
construct it, aerogel will throw an exception.
### Result
The module configuration is properly reloaded on module reload.
##### Other context
See
https://discord.com/channels/325362837184577536/818777626663321671/13573629347322921871 parent 78e47f7 commit 615a357
1 file changed
Lines changed: 7 additions & 6 deletions
File tree
- modules/syncproxy/impl/src/main/java/eu/cloudnetservice/modules/syncproxy/impl/node
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
0 commit comments