Skip to content

Commit

Permalink
debounce wasn't it
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 27, 2023
1 parent de59e94 commit e3ada35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/licensing/common/license_update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
takeUntil,
finalize,
startWith,
debounceTime,
} from 'rxjs/operators';
import { hasLicenseInfoChanged } from './has_license_info_changed';
import type { ILicense } from './types';
Expand All @@ -30,7 +29,7 @@ export function createLicenseUpdate(
) {
const manuallyRefresh$ = new Subject<void>();

const fetched$ = merge(triggerRefresh$, manuallyRefresh$.pipe(debounceTime(1000))).pipe(
const fetched$ = merge(triggerRefresh$, manuallyRefresh$).pipe(
takeUntil(stop$),
exhaustMap(fetcher),
share()
Expand Down

0 comments on commit e3ada35

Please sign in to comment.