Skip to content

Commit 71beace

Browse files
committed
fix: lint error
1 parent 2dd5225 commit 71beace

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as env from 'lib0/environment'
2-
import * as logging from 'lib0/logging'
32
import * as jwt from 'lib0/crypto/jwt'
43
import * as ecdsa from 'lib0/crypto/ecdsa'
54
import * as json from 'lib0/json'

src/y-socket-io/client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class SocketIOProvider extends Observable {
142142
resyncInterval = -1,
143143
disableBc = false,
144144
auth = {},
145-
socket,
145+
socket
146146
} = {},
147147
socketIoOptions = undefined
148148
) {
@@ -442,8 +442,8 @@ export class SocketIOProvider extends Observable {
442442
if (origin !== this) {
443443
/** @type {boolean} */
444444
const ack = await Promise.race([
445-
new Promise((res) => this.socket.emit('sync-update', update, () => res(true))),
446-
new Promise((res) => setTimeout(() => res(false), 3000)),
445+
new Promise((resolve) => this.socket.emit('sync-update', update, () => resolve(true))),
446+
new Promise((resolve) => setTimeout(() => resolve(false), 3000))
447447
])
448448
if (!ack) {
449449
this._updateRetries++

0 commit comments

Comments
 (0)