Skip to content

Commit

Permalink
chore: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed May 8, 2024
1 parent d82cf09 commit e64c3f7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {type SanityClient} from '@sanity/client'
import {type SanityDocument} from '@sanity/types'
import {groupBy} from 'lodash'
import {defer, type Observable, of as observableOf, of, timer} from 'rxjs'
import {defer, type Observable, of as observableOf} from 'rxjs'
import {concatMap, map, mergeMap, scan} from 'rxjs/operators'

import {
Expand Down Expand Up @@ -124,9 +124,6 @@ export function getPairListener(
),
// note: this flattens the array, and in the case of an empty array, no event will be pushed downstream
mergeMap((v) => v.next),
concatMap((result) =>
(window as any).SLOW ? timer(10000).pipe(map(() => result)) : of(result),
),
)

function fetchInitialDocumentSnapshots(): Observable<Snapshots> {
Expand Down

0 comments on commit e64c3f7

Please sign in to comment.