fix linting and testing stages
This commit is contained in:
@@ -63,7 +63,7 @@ const resolveAnnouncedIp = (requestHost) => {
|
||||
return getAnnouncedIpFromInterfaces()
|
||||
}
|
||||
|
||||
export const createTransport = async (router, _isProducer = false, requestHost = undefined) => {
|
||||
export const createTransport = async (router, requestHost = undefined) => {
|
||||
const announcedIp = resolveAnnouncedIp(requestHost)
|
||||
const listenIps = announcedIp
|
||||
? [{ ip: '0.0.0.0', announcedIp }, { ip: '127.0.0.1' }]
|
||||
@@ -94,7 +94,7 @@ export const createTransport = async (router, _isProducer = false, requestHost =
|
||||
}
|
||||
}
|
||||
|
||||
export const getTransport = (transportId) => transports.get(transportId)
|
||||
export const getTransport = transportId => transports.get(transportId)
|
||||
|
||||
export const createProducer = async (transport, track) => {
|
||||
const producer = await transport.produce({ track })
|
||||
@@ -103,7 +103,7 @@ export const createProducer = async (transport, track) => {
|
||||
return producer
|
||||
}
|
||||
|
||||
export const getProducer = (producerId) => producers.get(producerId)
|
||||
export const getProducer = producerId => producers.get(producerId)
|
||||
|
||||
export const getTransports = () => transports
|
||||
|
||||
|
||||
Reference in New Issue
Block a user