mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
(cherry picked from commit 2fce979
)
This commit is contained in:
@ -83,7 +83,7 @@ class NodeInfoWatcher(private val nodePath: Path,
|
||||
* @return an [Observable] returning [NodeInfoUpdate]s, at most one [NodeInfo] is returned for each processed file.
|
||||
*/
|
||||
fun nodeInfoUpdates(): Observable<NodeInfoUpdate> {
|
||||
return Observable.interval(pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
|
||||
return Observable.interval(0, pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
|
||||
.flatMapIterable { loadFromDirectory() }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user