Make Module#enable call Module#reload by default

This commit is contained in:
Vankka 2022-01-20 20:19:51 +02:00
parent bdc767ce47
commit f5acc00f8a
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 4 additions and 6 deletions

View File

@ -42,11 +42,6 @@ public class ChannelUpdaterModule extends AbstractModule<DiscordSRV> {
super(discordSRV);
}
@Override
public void enable() {
reload();
}
@Override
public void reload() {
futures.forEach(future -> future.cancel(false));

View File

@ -34,7 +34,10 @@ public interface Module {
return 0;
}
default void enable() {}
default void enable() {
reload();
}
default void disable() {}
default void reload() {}
}