mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 16:43:55 +08:00
清除无效变量
This commit is contained in:
@@ -64,18 +64,10 @@ public class WebSocketClientManager implements Closeable {
|
|||||||
private volatile Consumer<byte[]> onBinary;
|
private volatile Consumer<byte[]> onBinary;
|
||||||
private volatile Consumer<Throwable> onError;
|
private volatile Consumer<Throwable> onError;
|
||||||
|
|
||||||
private final String uri;
|
|
||||||
private final WebSocketHttpHeaders headers;
|
|
||||||
private final long connectTimeout;
|
|
||||||
private final TimeUnit connectUnit;
|
|
||||||
private final int queueCapacity;
|
private final int queueCapacity;
|
||||||
|
|
||||||
// 私有构造,仅由 Builder 调用
|
// 私有构造,仅由 Builder 调用
|
||||||
private WebSocketClientManager(Builder b) {
|
private WebSocketClientManager(Builder b) {
|
||||||
this.uri = b.uri;
|
|
||||||
this.headers = b.headers != null ? b.headers : new WebSocketHttpHeaders();
|
|
||||||
this.connectTimeout = b.connectTimeout;
|
|
||||||
this.connectUnit = b.connectUnit;
|
|
||||||
this.maxSessionDuration = b.maxSessionDuration;
|
this.maxSessionDuration = b.maxSessionDuration;
|
||||||
this.maxSessionDurationUnit = b.maxSessionDurationUnit;
|
this.maxSessionDurationUnit = b.maxSessionDurationUnit;
|
||||||
this.queueCapacity = b.queueCapacity;
|
this.queueCapacity = b.queueCapacity;
|
||||||
|
|||||||
Reference in New Issue
Block a user