api/stream: rename getInternalStream to getInternalTunnel

This commit is contained in:
jj
2024-12-16 10:16:48 +00:00
parent 5820736a31
commit e7c2872e40
2 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ export function createStream(obj) {
return streamLink.toString();
}
export function getInternalStream(id) {
export function getInternalTunnel(id) {
return internalStreamCache.get(id);
}
@@ -124,7 +124,7 @@ export function destroyInternalStream(url) {
const id = url.searchParams.get('id');
if (internalStreamCache.has(id)) {
closeRequest(getInternalStream(id)?.controller);
closeRequest(getInternalTunnel(id)?.controller);
internalStreamCache.delete(id);
}
}