**createSocket does not need to be async

This commit is contained in:
Derrick Hammer 2023-04-16 05:38:36 -04:00
parent c3c8e6fb3b
commit f842cd84c4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -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");
}