mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
清除无效变量
This commit is contained in:
parent
9c3e1a6ff6
commit
1adb2fe0f6
1 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue