mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(config): adjust method init and onReload to support polymorphic config loading
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package work.slhaf.partner.runtime.interaction;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import work.slhaf.partner.api.agent.runtime.config.Config;
|
||||
@@ -26,7 +27,7 @@ public class WebSocketGatewayRegistry implements Configurable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(@NotNull WebSocketConfig config) {
|
||||
public void init(@NotNull WebSocketConfig config, JSONObject json) {
|
||||
new WebSocketGateway(config.port, config.heartbeatInterval);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user