mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
revert source connection monitor
This commit is contained in:
committed by
Aiden McClelland
parent
c03c876098
commit
c3e28cb683
@@ -9,7 +9,6 @@ export type PollConfig = {
|
||||
}
|
||||
|
||||
export class PollSource<T> implements Source<T> {
|
||||
connectionMade$ = new Subject<void>()
|
||||
|
||||
constructor (
|
||||
private readonly pollConfig: PollConfig,
|
||||
@@ -37,7 +36,6 @@ export class PollSource<T> implements Source<T> {
|
||||
return polling$.pipe(
|
||||
switchMap(_ => poll$),
|
||||
concatMap(res => {
|
||||
this.connectionMade$.next()
|
||||
if (Array.isArray(res)) {
|
||||
return from(res) // takes Revision[] and converts it into Observable<Revision>
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user