Skip to content

fix: syncproxy module does not reload config file#1606

Merged
0utplay merged 1 commit intonightlyfrom
fix/syncproxy-reload
Apr 5, 2025
Merged

fix: syncproxy module does not reload config file#1606
0utplay merged 1 commit intonightlyfrom
fix/syncproxy-reload

Conversation

@0utplay
Copy link
Copy Markdown
Member

@0utplay 0utplay commented Apr 5, 2025

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/1357362934732292187

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels Apr 5, 2025
@0utplay 0utplay requested a review from derklaro April 5, 2025 10:06
@0utplay 0utplay self-assigned this Apr 5, 2025
@0utplay 0utplay merged commit 615a357 into nightly Apr 5, 2025
6 checks passed
@0utplay 0utplay deleted the fix/syncproxy-reload branch April 5, 2025 10:25
GiantTreeLP pushed a commit to GiantTreeLP/CloudNet that referenced this pull request Jun 7, 2025
### 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/1357362934732292187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants