**createSocket does not need to be async
This commit is contained in:
parent
c3c8e6fb3b
commit
f842cd84c4
|
@ -172,9 +172,7 @@ export default class MultiSocketProxy extends Proxy {
|
|||
} as PeerEntity);
|
||||
}
|
||||
|
||||
public async createSocket(
|
||||
options: TcpSocketConnectOpts
|
||||
): Promise<typeof this.socketClass> {
|
||||
public createSocket(options: TcpSocketConnectOpts): typeof this.socketClass {
|
||||
if (!this._peers.size) {
|
||||
throw new Error("no peers found");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue