Skip to content

Commit

Permalink
fix(operators): request optim
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Jan 8, 2025
1 parent f515a50 commit 8215cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/operators/src/request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe('test', () => {
SvgContentLengthInvalid: 'https://upload.wikimedia.org/wikipedia/commons/8/84/Example.svg'
};

const req = new Request(new URL(fileMap.SvgContentLengthInvalid), {
const req = new Request(new URL(fileMap.VIDEO_13MB), {
method: 'GET'
});

Expand Down
3 changes: 2 additions & 1 deletion packages/operators/src/stream/observables/EstimateTime.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { concatWith, map, of, Subject } from 'rxjs';
import { concatWith, distinctUntilChanged, map, of, Subject } from 'rxjs';

import { calcReceivedStats, MSECOND } from './utils';

Expand All @@ -7,6 +7,7 @@ export const EstimateTime = (timeUnit = MSECOND) => {
calcReceivedStats(),
calcEstimatedTime(),
concatWith(of(0)),
distinctUntilChanged(),
convertEstimedTimeTo(timeUnit)
);
};
Expand Down

0 comments on commit 8215cd6

Please sign in to comment.